1 | <?php |
||
12 | class UserQuery extends ActiveQuery |
||
13 | { |
||
14 | /** |
||
15 | * Filter only active user |
||
16 | * @return $this |
||
17 | */ |
||
18 | 1 | public function active() |
|
23 | |||
24 | /** |
||
25 | * Filter only blocked user |
||
26 | * @return $this |
||
27 | */ |
||
28 | 1 | public function blocked() |
|
33 | |||
34 | /** |
||
35 | * Filter only user waiting confirmation |
||
36 | * @return $this |
||
37 | */ |
||
38 | 1 | public function notConfirmed() |
|
43 | |||
44 | /** |
||
45 | * Filter user that requested access restore |
||
46 | * @return $this |
||
47 | */ |
||
48 | 1 | public function restoring() |
|
53 | |||
54 | /** |
||
55 | * @inheritdoc |
||
56 | * @return User[]|array |
||
57 | */ |
||
58 | 2 | public function all($db = null) |
|
62 | |||
63 | /** |
||
64 | * @inheritdoc |
||
65 | * @return User|array|null |
||
66 | */ |
||
67 | 13 | public function one($db = null) |
|
71 | } |
||
72 |