PHP Class yii\rbac\Rule

Since: 2.0
Author: Alexander Makarov ([email protected])
Inheritance: extends yii\base\Object
Afficher le fichier Open project: yiisoft/yii2 Class Usage Examples

Méthodes publiques

Свойство Type Description
$createdAt UNIX timestamp representing the rule creation time
$name name of the rule
$updatedAt UNIX timestamp representing the rule updating time

Méthodes publiques

Méthode Description
execute ( string | integer $user, Item $item, array $params ) : boolean Executes the rule.

Method Details

execute() abstract public méthode

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()]].
Résultat boolean a value indicating whether the rule permits the auth item it is associated with.

Property Details

$createdAt public_oe property

UNIX timestamp representing the rule creation time
public $createdAt

$name public_oe property

name of the rule
public $name

$updatedAt public_oe property

UNIX timestamp representing the rule updating time
public $updatedAt