The Yaf_Action_Abstract class
(Yaf >=1.0.0)
简介
在Yaf中一个action可以采用单独定义Yaf_Action_Abstract来实现。 亦即,一个action方法也可以是一个Yaf_Action_Abstract的派生类
Yaf需要一个可以被它所调用的入口点(比如PHP 5.3,它有一个新的魔术方法__invoke,但是Yaf不只支持PHP 5.3+, 所以Yaf需要另一个魔术方法来执行完成这样的任务),所以在你自己的动作类里面必须要实现抽象方法 Yaf_Action_Abstract::execute()
类摘要
class Yaf_Action_Abstract
extends
Yaf_Controller_Abstract
{
/* 属性 */
protected
$_controller;
/* 方法 */
/* 继承的方法 */
public Yaf_Controller_Abstract::forward(
string
string
string
array
): void
}string
$module
,string
$controller
= ?,string
$action
= ?,array
$paramters
= ?): void
属性
- _module
- _name
- _request
- _response
- _invoke_args
- _view
- _controller
目录
- Yaf_Action_Abstract::execute — 执行动作
- Yaf_Action_Abstract::getController — 得到控制器实例
- Yaf_Action_Abstract::getControllerName — Get controller name

User Contributed Notes
There are no user contributed notes for this page.
备份地址:http://www.lvesu.com/blog/php/class.yaf-action-abstract.php