Class CAction
CAction is the base class for all controller action classes.
CAction provides a way to divide a complex controller into smaller actions in separate class files.
Derived classes must implement run() which is invoked by controller when the action is requested.
An action instance can access its controller via getController controller property.
- CComponent
- CAction implements IAction
Direct known subclasses
AjaxGetModelAutocompleteAction, CCaptchaAction, RecordAliasesCreateAction, RecordAliasesDeleteAction, TestEmailAction, WebFormAction, WebUpdaterAction, X2GridViewMassActionAction, X2ModelConversionAction, CInlineAction, CreateWebFormAction, CViewAction, CWebServiceAction, GetActionsBetweenAction, GetItemsAction, InlineEmailAction, MobileActionIndirect known subclasses
DatabaseBackupAction, MobileActivityAction, MobileTopicsIndexAction, MobileTopicsUpdateAction, MobileTopicsUpdateReplyAction, MobileTopicsViewAction, MobileUpdateAction, MobileViewAction, MobileViewEventAction, UpdaterAction, UpdateStageAction, MobileCreateAction, MobileDeleteAction, MobileIndexAction, MobileProfileViewAction, MobilePublisherAction, MobileResetPasswordAction, MobileTopicsCreateAction, MobileTopicsDeleteReplyAction
Abstract
Package: system\web\actions
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/web/actions/CAction.php
Package: system\web\actions
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/web/actions/CAction.php
public
|
|
public
|
|
public
string
|
|
public
boolean
|
#
runWithParams( array $params )
Runs the action with the supplied request parameters. This method is
internally called by |
protected
boolean
|
#
runWithParamsInternal( mixed $object,
Executes a method of an object with the supplied named parameters. This method is internally used. |
public
mixed
|
public
|
$controller |
#
The controller who owns this action. |
public
string
|
$id |
#
Id of this action. |