yii2

Форк
1
/
Item.php 
51 строка · 1.2 Кб
1
<?php
2
/**
3
 * @link https://www.yiiframework.com/
4
 * @copyright Copyright (c) 2008 Yii Software LLC
5
 * @license https://www.yiiframework.com/license/
6
 */
7

8
namespace yii\rbac;
9

10
use yii\base\BaseObject;
11

12
/**
13
 * For more details and usage information on Item, see the [guide article on security authorization](guide:security-authorization).
14
 *
15
 * @author Qiang Xue <qiang.xue@gmail.com>
16
 * @since 2.0
17
 */
18
class Item extends BaseObject
19
{
20
    const TYPE_ROLE = 1;
21
    const TYPE_PERMISSION = 2;
22

23
    /**
24
     * @var int the type of the item. This should be either [[TYPE_ROLE]] or [[TYPE_PERMISSION]].
25
     */
26
    public $type;
27
    /**
28
     * @var string the name of the item. This must be globally unique.
29
     */
30
    public $name;
31
    /**
32
     * @var string the item description
33
     */
34
    public $description;
35
    /**
36
     * @var string name of the rule associated with this item
37
     */
38
    public $ruleName;
39
    /**
40
     * @var mixed the additional data associated with this item
41
     */
42
    public $data;
43
    /**
44
     * @var int UNIX timestamp representing the item creation time
45
     */
46
    public $createdAt;
47
    /**
48
     * @var int UNIX timestamp representing the item updating time
49
     */
50
    public $updatedAt;
51
}
52

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.