PHP Class yii\rbac\Item

An authorization item can be an operation, a task or a role. They form an authorization hierarchy. Items on higher levels of the hierarchy inherit the permissions represented by items on lower levels. A user may be assigned one or several authorization items (called Assignment assignments). He can perform an operation only when it is among his assigned items.
Since: 2.0
Author: Qiang Xue ([email protected])
Author: Alexander Kochetov ([email protected])
Inheritance: extends yii\base\Object
显示文件 Open project: yiisoft/yii2 Class Usage Examples

Public Properties

Property Type Description
$createdAt UNIX timestamp representing the item creation time
$data the additional data associated with this item
$description the item description
$name the name of the item. This must be globally unique.
$ruleName name of the rule associated with this item
$type the type of the item. This should be either [[TYPE_ROLE]] or [[TYPE_PERMISSION]].
$updatedAt UNIX timestamp representing the item updating time

Property Details

$createdAt public_oe property

UNIX timestamp representing the item creation time
public $createdAt

$data public_oe property

the additional data associated with this item
public $data

$description public_oe property

the item description
public $description

$name public_oe property

the name of the item. This must be globally unique.
public $name

$ruleName public_oe property

name of the rule associated with this item
public $ruleName

$type public_oe property

the type of the item. This should be either [[TYPE_ROLE]] or [[TYPE_PERMISSION]].
public $type

$updatedAt public_oe property

UNIX timestamp representing the item updating time
public $updatedAt