FLEA_Controller_Action类参考

所有成员的列表。

公有成员

 FLEA_Controller_Action ($controllerName)
_getComponent ($componentName)
 __setController ($controllerName, $actionName)
 __setDispatcher (&$dispatcher)
_getDispatcher ()
 _url ($actionName=null, $args=null, $anchor=null)
 _forward ($controllerName=null, $actionName=null)
_getView ()
 _executeView ($__flea_internal_viewName, $data=null)
 _isPOST ()
 _isAjax ()
 _registerEvent ($controlName, $event, $action, $attribs=null)
 _registerRenderCallback ($callback)

公有属性

 $_controllerName = null
 $_actionName = null
 $_dispatcher = null
 $components = array()
 $_renderCallbacks = array()


详细描述

在文件Action.php31行定义。


成员函数文档

FLEA_Controller_Action::FLEA_Controller_Action ( controllerName  ) 

构造函数

参数:
string $controllerName
返回:
FLEA_Controller_Action

在文件Action.php75行定义。

参考 _getComponent().

& FLEA_Controller_Action::_getComponent ( componentName  ) 

获得指定的组件对象

参数:
string $componentName
返回:
object

在文件Action.php91行定义。

参考 FLEA::getAppInf()FLEA::loadClass().

参考自 FLEA_Controller_Action().

FLEA_Controller_Action::__setController ( controllerName,
actionName 
)

设置控制器名字,由 dispatcher 调用

参数:
string $controllerName
string $actionName

在文件Action.php109行定义。

FLEA_Controller_Action::__setDispatcher ( &$  dispatcher  ) 

设置当前控制器使用的调度器对象

参数:
FLEA_Dispatcher_Simple $dispatcher

在文件Action.php120行定义。

& FLEA_Controller_Action::_getDispatcher (  ) 

获得当前使用的 Dispatcher

返回:
FLEA_Dispatcher_Auth

在文件Action.php130行定义。

参考 FLEA::getAppInf()FLEA::getSingleton().

FLEA_Controller_Action::_url ( actionName = null,
args = null,
anchor = null 
)

构造当前控制器的 url 地址

参数:
string $actionName
array $args
string $anchor
返回:
string

在文件Action.php147行定义。

参考 url().

FLEA_Controller_Action::_forward ( controllerName = null,
actionName = null 
)

转发请求到另一个控制器方法

参数:
string $controllerName
string $actionName

在文件Action.php158行定义。

& FLEA_Controller_Action::_getView (  ) 

返回视图对象

返回:
object

在文件Action.php170行定义。

参考 FLEA::getAppInf()FLEA::getSingleton().

参考自 _executeView().

FLEA_Controller_Action::_executeView ( __flea_internal_viewName,
data = null 
)

执行指定的视图

参数:
string $__flea_internal_viewName
array $data

在文件Action.php187行定义。

参考 _getView()FLEA::getAppInf().

FLEA_Controller_Action::_isPOST (  ) 

判断 HTTP 请求是否是 POST 方法

返回:
boolean

在文件Action.php215行定义。

FLEA_Controller_Action::_isAjax (  ) 

判断 HTTP 请求是否是通过 XMLHttp 发起的

返回:
boolean

在文件Action.php225行定义。

FLEA_Controller_Action::_registerEvent ( controlName,
event,
action,
attribs = null 
)

为指定控件绑定事件,返回浏览器端该事件响应函数的名字

参数:
string $controlName
string $event
string $action
array $attribs
返回:
string

在文件Action.php241行定义。

参考 FLEA::initAjax()url().

FLEA_Controller_Action::_registerRenderCallback ( callback  ) 

注册一个视图渲染 callback 方法

参数:
callback $callback

在文件Action.php253行定义。


成员数据文档

FLEA_Controller_Action::$_controllerName = null

在文件Action.php38行定义。

FLEA_Controller_Action::$_actionName = null

在文件Action.php45行定义。

FLEA_Controller_Action::$_dispatcher = null

在文件Action.php52行定义。

FLEA_Controller_Action::$components = array()

在文件Action.php59行定义。

FLEA_Controller_Action::$_renderCallbacks = array()

在文件Action.php66行定义。


该类的文档由以下文件生成:
Generated at Sat Feb 2 15:18:53 2008 for FleaPHP by  doxygen 1.5.3