1 | <?php |
||
23 | class DomainsQuery extends CacheableActiveQuery |
||
24 | { |
||
25 | use FieldAttributeTrait, |
||
26 | ElementAttributeTrait, |
||
27 | SiteAttributeTrait; |
||
28 | |||
29 | /** |
||
30 | * @var string|string[]|false|null The domain(s). Prefix with "not " to exclude them. |
||
31 | */ |
||
32 | public $domain; |
||
33 | |||
34 | /** |
||
35 | * @var string|string[]|false|null The status(es). Prefix with "not " to exclude them. |
||
36 | */ |
||
37 | public $status; |
||
38 | |||
39 | /** |
||
40 | * @var array |
||
41 | */ |
||
42 | public $orderBy = [ |
||
43 | 'sortOrder' => SORT_ASC |
||
44 | ]; |
||
45 | |||
46 | /** |
||
47 | * @param array $config |
||
48 | * @return $this |
||
49 | */ |
||
50 | public function configure(array $config) |
||
59 | |||
60 | /** |
||
61 | * @param $value |
||
62 | * @return static |
||
63 | */ |
||
64 | public function domain($value) |
||
69 | |||
70 | /** |
||
71 | * @param $value |
||
72 | * @return static |
||
73 | */ |
||
74 | public function setDomain($value) |
||
78 | |||
79 | /** |
||
80 | * @param $value |
||
81 | * @return static |
||
82 | */ |
||
83 | public function status($value) |
||
88 | |||
89 | /** |
||
90 | * @param $value |
||
91 | * @return static |
||
92 | */ |
||
93 | public function setStatus($value) |
||
97 | |||
98 | /** |
||
99 | * @inheritdoc |
||
100 | * |
||
101 | * @throws QueryAbortedException if it can be determined that there won’t be any results |
||
102 | */ |
||
103 | public function prepare($builder) |
||
120 | |||
121 | /** |
||
122 | * Apply attribute conditions |
||
123 | */ |
||
124 | protected function applyConditions() |
||
134 | |||
135 | /** |
||
136 | * Apply query specific conditions |
||
137 | */ |
||
138 | protected function applyElementConditions() |
||
144 | |||
145 | /** |
||
146 | * Apply query specific conditions |
||
147 | */ |
||
148 | protected function applyFieldConditions() |
||
154 | |||
155 | /** |
||
156 | * Apply query specific conditions |
||
157 | */ |
||
158 | protected function applySiteConditions() |
||
164 | } |
||
165 |