1 | <?php |
||
34 | class OrganizationQuery extends ElementQuery |
||
35 | { |
||
36 | use UserAttributeTrait, |
||
37 | UserGroupAttributeTrait, |
||
38 | UserTypeAttributeTrait, |
||
39 | UserStateAttributeTrait, |
||
40 | OrganizationTypeAttributeTrait; |
||
41 | |||
42 | /** |
||
43 | * @var mixed When the resulting organizations must have joined. |
||
44 | */ |
||
45 | public $dateJoined; |
||
46 | |||
47 | /** |
||
48 | * @inheritdoc |
||
49 | */ |
||
50 | protected function beforePrepare(): bool |
||
68 | |||
69 | /** |
||
70 | * Prepares simple attributes |
||
71 | * |
||
72 | * @var string $alias |
||
73 | */ |
||
74 | protected function prepareAttributes(string $alias) |
||
80 | |||
81 | /** |
||
82 | * Prepares relation params |
||
83 | */ |
||
84 | protected function prepareRelationsParams() |
||
100 | |||
101 | |||
102 | /************************************************************ |
||
103 | * JOIN TABLES |
||
104 | ************************************************************/ |
||
105 | |||
106 | /** |
||
107 | * @return string |
||
108 | */ |
||
109 | protected function joinOrganizationUserTable(): string |
||
130 | |||
131 | /** |
||
132 | * @return string |
||
133 | */ |
||
134 | protected function joinOrganizationTypeTable(): string |
||
145 | |||
146 | |||
147 | /************************************************************ |
||
148 | * USER |
||
149 | ************************************************************/ |
||
150 | |||
151 | /** |
||
152 | * @param string $alias |
||
153 | * |
||
154 | * @return void |
||
155 | */ |
||
156 | protected function applyUserParam(string $alias) |
||
167 | |||
168 | |||
169 | /************************************************************ |
||
170 | * USER GROUP |
||
171 | ************************************************************/ |
||
172 | |||
173 | /** |
||
174 | * @param string $alias |
||
175 | * |
||
176 | * @return void |
||
177 | */ |
||
178 | protected function applyUserGroupParam(string $alias) |
||
195 | |||
196 | |||
197 | /************************************************************ |
||
198 | * USER TYPE |
||
199 | ************************************************************/ |
||
200 | |||
201 | /** |
||
202 | * @param string $alias |
||
203 | * |
||
204 | * @return void |
||
205 | */ |
||
206 | protected function applyUserTypeParam(string $alias) |
||
223 | |||
224 | |||
225 | /************************************************************ |
||
226 | * USER STATE |
||
227 | ************************************************************/ |
||
228 | |||
229 | /** |
||
230 | * @param string $alias |
||
231 | * |
||
232 | * @return void |
||
233 | */ |
||
234 | protected function applyUserStateParam(string $alias) |
||
244 | |||
245 | |||
246 | /************************************************************ |
||
247 | * TYPE |
||
248 | ************************************************************/ |
||
249 | |||
250 | /** |
||
251 | * @return void |
||
252 | */ |
||
253 | protected function applyTypeParam() |
||
267 | } |
||
268 |