Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

yafapplication(3) [php man page]

YAFAPPLICATION(3)							 1							 YAFAPPLICATION(3)

The YafApplication class

INTRODUCTION
Yaf_Application provides a bootstrapping facility for applications which provides reusable resources, common- and module-based bootstrap classes and dependency checking. Note Yaf_Application implements the singleton pattern, and Yaf_Application can not be serialized or unserialized which will cause problem when you try to use PHPUnit to write some test case for Yaf. You may use @backupGlobals annotation of PHPUnit to control the backup and restore operations for global variables. thus can solve this problem. CLASS SYNOPSIS
Yaf_Application final Yaf_Application Properties o protected$config o protected$dispatcher o protectedstatic$_app o protected$_modules o protected$_running o protected$_environ Methods o publicstatic void Yaf_Application::app (void ) o public void Yaf_Application::bootstrap ([Yaf_Bootstrap_Abstract $bootstrap]) o public Yaf_Application Yaf_Application::clearLastError (void ) o private void Yaf_Application::__clone (void ) o public Yaf_Application::__construct (mixed $config, [string $envrion]) o public void Yaf_Application::__destruct (void ) o public void Yaf_Application::environ (void ) o public void Yaf_Application::execute (callable $entry, string $...) o public Yaf_Application Yaf_Application::getAppDirectory (void ) o public Yaf_Config_Abstract Yaf_Application::getConfig (void ) o public Yaf_Dispatcher Yaf_Application::getDispatcher (void ) o public string Yaf_Application::getLastErrorMsg (void ) o public int Yaf_Application::getLastErrorNo (void ) o public array Yaf_Application::getModules (void ) o public void Yaf_Application::run (void ) o public Yaf_Application Yaf_Application::setAppDirectory (string $directory) o private void Yaf_Application::__sleep (void ) o private void Yaf_Application::__wakeup (void ) PROPERTIES
o $config - o $dispatcher - o $_app - o $_modules - o $_running - o $_environ - PHP Documentation Group YAFAPPLICATION(3)

Check Out this Related Man Page

YAF_ACTION_ABSTRACT(3)							 1						    YAF_ACTION_ABSTRACT(3)

The Yaf_Action_Abstract class

INTRODUCTION
A action can be defined in a separate file in Yaf(see Yaf_Controller_Abstract). that is a action method can also be a Yaf_Action_Abstract class. Since there should be a entry point which can be called by Yaf (as of PHP 5.3, there is a new magic method __invoke, but Yaf is not only works with PHP 5.3+, Yaf choose another magic method execute), you must implement the abstract method Yaf_Action_Abstract::execute in your custom action class. CLASS SYNOPSIS
Yaf_Action_Abstract Yaf_Action_Abstractextends Yaf_Controller_Abstract Properties o protected$_controller Methods o abstractpublic mixed Yaf_Action_Abstract::execute ([mixed $arg], [mixed $...]) o public Yaf_Controller_Abstract Yaf_Action_Abstract::getController (void ) Inherited methods o finalprivate void Yaf_Controller_Abstract::__clone (void ) o finalprivate Yaf_Controller_Abstract::__construct (void ) o protected bool Yaf_Controller_Abstract::display (string $tpl, [array $parameters]) o public void Yaf_Controller_Abstract::forward (string $action, [array $paramters]) o public void Yaf_Controller_Abstract::getInvokeArg (string $name) o public void Yaf_Controller_Abstract::getInvokeArgs (void ) o public string Yaf_Controller_Abstract::getModuleName (void ) o public Yaf_Request_Abstract Yaf_Controller_Abstract::getRequest (void ) o public Yaf_Response_Abstract Yaf_Controller_Abstract::getResponse (void ) o public Yaf_View_Interface Yaf_Controller_Abstract::getView (void ) o public void Yaf_Controller_Abstract::getViewpath (void ) o public void Yaf_Controller_Abstract::init (void ) o public void Yaf_Controller_Abstract::initView ([array $options]) o public bool Yaf_Controller_Abstract::redirect (string $url) o protected string Yaf_Controller_Abstract::render (string $tpl, [array $parameters]) o public void Yaf_Controller_Abstract::setViewpath (string $view_directory) PROPERTIES
o $_module - o $_name - o $_request - o $_response - o $_invoke_args - o $_view - o $_controller - PHP Documentation Group YAF_ACTION_ABSTRACT(3)
Man Page