1 | <?php |
||
18 | class AuthItem extends \yii\db\ActiveRecord |
||
19 | { |
||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | public $roles; |
||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | public $permissions; |
||
28 | |||
29 | /** |
||
30 | * @inheritdoc |
||
31 | */ |
||
32 | 30 | public static function tableName() |
|
36 | |||
37 | /** |
||
38 | * @inheritdoc |
||
39 | */ |
||
40 | 1 | public function rules() |
|
55 | |||
56 | /** |
||
57 | * @inheritdoc |
||
58 | */ |
||
59 | 4 | public function attributeLabels() |
|
68 | |||
69 | /** |
||
70 | * @inheritdoc |
||
71 | * @codeCoverageIgnore |
||
72 | */ |
||
73 | public function events() |
||
79 | |||
80 | /** |
||
81 | * Is SuperUser? |
||
82 | * |
||
83 | * @return bool |
||
84 | */ |
||
85 | 1 | public function isSuperUser(): bool |
|
89 | |||
90 | /** |
||
91 | * Deleting a file from the db and from the file system |
||
92 | * |
||
93 | * @return bool |
||
94 | */ |
||
95 | 1 | public function beforeDelete() |
|
99 | } |
||
100 |