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
파일 보기 프로젝트 열기: yiisoft/yii2

공개 프로퍼티들

프로퍼티 타입 설명
$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