1 | <?php |
||
19 | class AuthItem extends \yii\db\ActiveRecord |
||
20 | { |
||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | public $roles; |
||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | public $permissions; |
||
29 | |||
30 | /** |
||
31 | * @inheritdoc |
||
32 | */ |
||
33 | 14 | public static function tableName() |
|
37 | |||
38 | /** |
||
39 | * @inheritdoc |
||
40 | */ |
||
41 | 4 | public function attributeLabels() |
|
50 | |||
51 | /** |
||
52 | * @inheritdoc |
||
53 | */ |
||
54 | 12 | public function behaviors() |
|
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | * @codeCoverageIgnore |
||
68 | */ |
||
69 | public function events() |
||
75 | |||
76 | /** |
||
77 | * @inheritdoc |
||
78 | * @return \query\AuthItemQuery the active query used by this AR class. |
||
79 | */ |
||
80 | 14 | public static function find() |
|
84 | |||
85 | /** |
||
86 | * Is SuperUser? |
||
87 | * |
||
88 | * @return bool |
||
89 | */ |
||
90 | 2 | public function isSuperUser(): bool |
|
94 | |||
95 | /** |
||
96 | * Deleting a file from the db and from the file system |
||
97 | * |
||
98 | * @return bool |
||
99 | */ |
||
100 | public function beforeDelete() |
||
104 | } |
||
105 |