NewsNewsFeaturesDownloadsDevelopmentSupportForumDocumentsAbout Us

ActionInfo 類別 參考文件
[Action]

類別ActionInfo的繼承圖:

Object 全部成員列表

公開方法(Public Methods)

 ActionInfo ($actionParamName, $actionParamValue)
 getActionParamName ()
 getActionParamValue ()

詳細描述

This class carries some information that classes extending the Action class might need, such as with which parameter they were called or which was the name of the parameter in the request.

定義在 actioninfo.class.php 檔案之第 12 行.


建構子與解構子說明文件

ActionInfo::ActionInfo actionParamName,
actionParamValue
 

Constructor.

In the following request: controller.php/?action=ViewArticle&articleId=7 the parameter name would be 'action' and the action name would be 'ViewArticle'. The default name for the parameter name is 'action' but it can be changed when constructing the controller. The name of the action is specified by using the action maps when creating the controller.

參數:
actionParamName The name of the parameter that was used to trigger the action.
actionParamValue The value of the action parameter that triggered this action.

定義在 actioninfo.class.php 檔案之第 30 行.

參考 Object::Object().

00031         {
00032             $this->Object();
00033         
00034             $this->_actionParamName  = $actionParamName;
00035             $this->_actionParamValue = $actionParamValue;
00036         }


函式成員說明文件

ActionInfo::getActionParamName  ) 
 

Returns the name of the parameter used to trigger this action.

傳回值:
The name of the parameter.

定義在 actioninfo.class.php 檔案之第 43 行.

00044         {
00045             return $this->_actionParamName;
00046         }

ActionInfo::getActionParamValue  ) 
 

Returns the vlaue of the parameter that triggered this action.

傳回值:
The value of the parameter.

定義在 actioninfo.class.php 檔案之第 53 行.

00054         {
00055             return $this->_actionParamValue;
00056         }


此類別(class) 文件是由下列檔案中產生: