PHP Класс yii\web\UserEvent

С версии: 2.0
Автор: Qiang Xue ([email protected])
Наследование: extends yii\base\Event
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$cookieBased whether the login is cookie-based. This property is only meaningful for [[User::EVENT_BEFORE_LOGIN]] and [[User::EVENT_AFTER_LOGIN]] events.
$duration integer number of seconds that the user can remain in logged-in status. If 0, it means login till the user closes the browser or the session is manually destroyed.
$identity the identity object associated with this event
$isValid whether the login or logout should proceed. Event handlers may modify this property to determine whether the login or logout should proceed. This property is only meaningful for [[User::EVENT_BEFORE_LOGIN]] and [[User::EVENT_BEFORE_LOGOUT]] events.

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

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

whether the login is cookie-based. This property is only meaningful for [[User::EVENT_BEFORE_LOGIN]] and [[User::EVENT_AFTER_LOGIN]] events.
public $cookieBased

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

number of seconds that the user can remain in logged-in status. If 0, it means login till the user closes the browser or the session is manually destroyed.
public int $duration
Результат integer

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

the identity object associated with this event
public $identity

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

whether the login or logout should proceed. Event handlers may modify this property to determine whether the login or logout should proceed. This property is only meaningful for [[User::EVENT_BEFORE_LOGIN]] and [[User::EVENT_BEFORE_LOGOUT]] events.
public $isValid