Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

yaf_action_abstract(3) [php 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)

Check Out this Related Man Page

YAF_REQUEST_HTTP(3)							 1						       YAF_REQUEST_HTTP(3)

The Yaf_Request_Http class

INTRODUCTION
Any request from client is initialized as a Yaf_Request_Http. you can get the rquest infomations like, uri query and post parameters via methods of this class. Note For security, $_GET/$_POST are readonly in Yaf, which means if you set a value to these global variables, you can not get it from Yaf_Request_Http::getQurey or Yaf_Request_Http::getPost. But there do is some usage need such feature, like unit testing. thus Yaf can be built with --enable-yaf-debug, which will allow Yaf read the value user set via script. in such case, Yaf will throw a E_STRICT warning to remind you about that: Strict Standards: you are running yaf in debug mode CLASS SYNOPSIS
Yaf_Request_Http Yaf_Request_Httpextends Yaf_Request_Abstract Properties Methods o private void Yaf_Request_Http::__clone (void ) o Yaf_Request_Http::__construct (void ) o public mixed Yaf_Request_Http::get (string $name, [string $default]) o public mixed Yaf_Request_Http::getCookie (string $name, [string $default]) o public void Yaf_Request_Http::getFiles (void ) o public mixed Yaf_Request_Http::getPost (string $name, [string $default]) o public mixed Yaf_Request_Http::getQuery (string $name, [string $default]) o public void Yaf_Request_Http::getRequest (void ) o public bool Yaf_Request_Http::isXmlHttpRequest (void ) Inherited methods o public void Yaf_Request_Abstract::getActionName (void ) o public void Yaf_Request_Abstract::getBaseUri (void ) o public void Yaf_Request_Abstract::getControllerName (void ) o public void Yaf_Request_Abstract::getEnv (string $name, [string $default]) o public void Yaf_Request_Abstract::getException (void ) o public void Yaf_Request_Abstract::getLanguage (void ) o public void Yaf_Request_Abstract::getMethod (void ) o public void Yaf_Request_Abstract::getModuleName (void ) o public void Yaf_Request_Abstract::getParam (string $name, [string $default]) o public void Yaf_Request_Abstract::getParams (void ) o public void Yaf_Request_Abstract::getRequestUri (void ) o public void Yaf_Request_Abstract::getServer (string $name, [string $default]) o public void Yaf_Request_Abstract::isCli (void ) o public void Yaf_Request_Abstract::isDispatched (void ) o public void Yaf_Request_Abstract::isGet (void ) o public void Yaf_Request_Abstract::isHead (void ) o public void Yaf_Request_Abstract::isOptions (void ) o public void Yaf_Request_Abstract::isPost (void ) o public void Yaf_Request_Abstract::isPut (void ) o public void Yaf_Request_Abstract::isRouted (void ) o public void Yaf_Request_Abstract::isXmlHttpRequest (void ) o public void Yaf_Request_Abstract::setActionName (string $action) o public bool Yaf_Request_Abstract::setBaseUri (string $uir) o public void Yaf_Request_Abstract::setControllerName (string $controller) o public void Yaf_Request_Abstract::setDispatched (void ) o public void Yaf_Request_Abstract::setModuleName (string $module) o public void Yaf_Request_Abstract::setParam (string $name, [string $value]) o public void Yaf_Request_Abstract::setRequestUri (string $uir) o public void Yaf_Request_Abstract::setRouted ([string $flag]) PROPERTIES
o $module - o $controller - o $action - o $method - o $params - o $language - o $_exception - o $_base_uri - o $uri - o $dispatched - o $routed - PHP Documentation Group YAF_REQUEST_HTTP(3)
Man Page