base\ActionFilter getActionId()

getActionId() protected method (available since version 2.0.7) Returns an action ID by converting yii\base\Action::$uniqueId into an ID relative to the module protected string getActionId ( $action )$action yii\base\Action

base\ActionFilter detach()

detach() public method Detaches the behavior object from the component. The default implementation will unset the $owner property and detach event handlers declared in events(). Make sure you call the parent implementation if you override this method. public void detach ( )

base\ActionFilter beforeFilter()

beforeFilter() public method public void beforeFilter ( $event )$event yii\base\ActionEvent

base\ActionFilter beforeAction()

beforeAction() public method This method is invoked right before an action is to be executed (after all possible filters.) You may override this method to do last-minute preparation for the action. public boolean beforeAction ( $action )$action yii\base\Action The action to be executed. return boolean Whether the action should continue to be executed.

base\ActionFilter attach()

attach() public method Attaches the behavior object to the component. The default implementation will set the $owner property and attach event handlers as declared in events(). Make sure you call the parent implementation if you override this method. public void attach ( $owner )$owner yii\base\Component The component that this behavior is to be attached to.

base\ActionFilter afterFilter()

afterFilter() public method public void afterFilter ( $event )$event yii\base\ActionEvent

base\ActionFilter afterAction()

afterAction() public method This method is invoked right after an action is executed. You may override this method to do some postprocessing for the action. public mixed afterAction ( $action, $result )$action yii\base\Action The action just executed. $result mixed The action execution result return mixed The processed action result.

base\ActionFilter $only

$only public property List of action IDs that this filter should apply to. If this property is not set, then the filter applies to all actions, unless they are listed in $except. If an action ID appears in both $only and $except, this filter will NOT apply to it. Note that if the filter is attached to a module, the action IDs should also include child module IDs (if any) and controller IDs. Since version 2.0.9 action IDs can be specified as wildcards, e.g. site/*. See also $except. public

base\ActionFilter $except

$except public property List of action IDs that this filter should not apply to. See also $only. public array $except = []

base\ActionEvent __construct()

__construct() public method Constructor. public void __construct ( $action, $config = [] )$action yii\base\Action The action associated with this action event. $config array Name-value pairs that will be used to initialize the object properties