公有成员 | |
| 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.php第31行定义。
| FLEA_Controller_Action::FLEA_Controller_Action | ( | $ | controllerName | ) |
| & FLEA_Controller_Action::_getComponent | ( | $ | componentName | ) |
获得指定的组件对象
| string | $componentName |
在文件Action.php第91行定义。
| FLEA_Controller_Action::__setController | ( | $ | controllerName, | |
| $ | actionName | |||
| ) |
| FLEA_Controller_Action::__setDispatcher | ( | &$ | dispatcher | ) |
| & FLEA_Controller_Action::_getDispatcher | ( | ) |
| FLEA_Controller_Action::_url | ( | $ | actionName = null, |
|
| $ | args = null, |
|||
| $ | anchor = null | |||
| ) |
构造当前控制器的 url 地址
| string | $actionName | |
| array | $args | |
| string | $anchor |
在文件Action.php第147行定义。
参考 url().
| FLEA_Controller_Action::_forward | ( | $ | controllerName = null, |
|
| $ | actionName = null | |||
| ) |
| & FLEA_Controller_Action::_getView | ( | ) |
返回视图对象
在文件Action.php第170行定义。
参考 FLEA::getAppInf()及FLEA::getSingleton().
参考自 _executeView().
| FLEA_Controller_Action::_executeView | ( | $ | __flea_internal_viewName, | |
| $ | data = null | |||
| ) |
| FLEA_Controller_Action::_isPOST | ( | ) |
| FLEA_Controller_Action::_isAjax | ( | ) |
| FLEA_Controller_Action::_registerEvent | ( | $ | controlName, | |
| $ | event, | |||
| $ | action, | |||
| $ | attribs = null | |||
| ) |
为指定控件绑定事件,返回浏览器端该事件响应函数的名字
| string | $controlName | |
| string | $event | |
| string | $action | |
| array | $attribs |
在文件Action.php第241行定义。
| FLEA_Controller_Action::_registerRenderCallback | ( | $ | callback | ) |
| FLEA_Controller_Action::$_controllerName = null |
在文件Action.php第38行定义。
| FLEA_Controller_Action::$_actionName = null |
在文件Action.php第45行定义。
| FLEA_Controller_Action::$_dispatcher = null |
在文件Action.php第52行定义。
| FLEA_Controller_Action::$components = array() |
在文件Action.php第59行定义。
| FLEA_Controller_Action::$_renderCallbacks = array() |
在文件Action.php第66行定义。
1.5.3