PHP 클래스 yii\rbac\Rule

부터: 2.0
저자: Alexander Makarov ([email protected])
상속: extends yii\base\Object
파일 보기 프로젝트 열기: yiisoft/yii2 1 사용 예제들

공개 프로퍼티들

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