base\ActionEvent $result

$result public property The action result. Event handlers may modify this property to change the action result. public mixed $result = null

base\ActionEvent $isValid

$isValid public property Whether to continue running the action. Event handlers of yii\base\Controller::EVENT_BEFORE_ACTION may set this property to decide whether to continue running the current action. public boolean $isValid = true

base\ActionEvent $action

$action public property The action currently being executed public yii\base\Action $action = null

base\Action __construct()

__construct() public method Constructor. public void __construct ( $id, $controller, $config = [] )$id string The ID of this action $controller yii\base\Controller The controller that owns this action $config array Name-value pairs that will be used to initialize the object properties

base\Action runWithParams()

runWithParams() public method Runs this action with the specified parameters. This method is mainly invoked by the controller. public mixed runWithParams ( $params )$params array The parameters to be bound to the action's run() method. return mixed The result of the action throws yii\base\InvalidConfigException if the action class does not have a run() method

base\Action getUniqueId()

getUniqueId() public method Returns the unique ID of this action among the whole application. public string getUniqueId ( )return string The unique ID of this action among the whole application.

base\Action beforeRun()

beforeRun() protected method This method is called right before run() is executed. You may override this method to do preparation work for the action run. If the method returns false, it will cancel the action. protected boolean beforeRun ( )return boolean Whether to run the action.

base\Action afterRun()

afterRun() protected method This method is called right after run() is executed. You may override this method to do post-processing work for the action run. protected void afterRun ( )

base\Action $uniqueId

$uniqueId public read-only property The unique ID of this action among the whole application. public string getUniqueId ( )

base\Action $id

$id public property ID of the action public string $id = null