PHP Класс yii\base\ActionEvent

By setting the [[isValid]] property, one may control whether to continue running the action.
С версии: 2.0
Автор: Qiang Xue ([email protected])
Наследование: extends Event
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$action the action currently being executed
$isValid whether to continue running the action. Event handlers of [[Controller::EVENT_BEFORE_ACTION]] may set this property to decide whether to continue running the current action.
$result the action result. Event handlers may modify this property to change the action result.

Открытые методы

Метод Описание
__construct ( Action $action, array $config = [] ) Constructor.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( Action $action, array $config = [] )
$action Action the action associated with this action event.
$config array name-value pairs that will be used to initialize the object properties

Описание свойств

$action публичное свойство

the action currently being executed
public $action

$isValid публичное свойство

whether to continue running the action. Event handlers of [[Controller::EVENT_BEFORE_ACTION]] may set this property to decide whether to continue running the current action.
public $isValid

$result публичное свойство

the action result. Event handlers may modify this property to change the action result.
public $result