PHP Класс yii\rbac\Rule

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

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

Свойство Тип Описание
$createdAt UNIX timestamp representing the rule creation time
$name name of the rule
$updatedAt UNIX timestamp representing the rule updating time

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

Метод Описание
execute ( string | integer $user, Item $item, array $params ) : boolean Executes the rule.

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

execute() абстрактный публичный Метод

Executes the rule.
abstract public execute ( string | integer $user, Item $item, array $params ) : boolean
$user string | integer the user ID. This should be either an integer or a string representing the unique identifier of a user. See [[\yii\web\User::id]].
$item Item the role or permission that this rule is associated with
$params array parameters passed to [[CheckAccessInterface::checkAccess()]].
Результат boolean a value indicating whether the rule permits the auth item it is associated with.

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

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

UNIX timestamp representing the rule creation time
public $createdAt

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

name of the rule
public $name

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

UNIX timestamp representing the rule updating time
public $updatedAt