Свойство | Тип | Описание | |
---|---|---|---|
$except | list of action IDs that this filter should not apply to. | ||
$only | 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/*. |
Метод | Описание | |
---|---|---|
afterAction ( |
This method is invoked right after an action is executed. | |
afterFilter ( |
||
attach ( $owner ) | ||
beforeAction ( |
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. | |
beforeFilter ( |
||
detach ( ) |
Метод | Описание | |
---|---|---|
getActionId ( |
Returns an action ID by converting [[Action::$uniqueId]] into an ID relative to the module | |
isActive ( |
Returns a value indicating whether the filter is active for the given action. |
public afterAction ( |
||
$action | the action just executed. | |
$result | mixed | the action execution result |
Результат | mixed | the processed action result. |
public beforeAction ( |
||
$action | the action to be executed. | |
Результат | boolean | whether the action should continue to be executed. |
protected getActionId ( |
||
$action | ||
Результат | string |
public $only |