1 | <?php |
||
29 | class AssociationQuery extends CacheableActiveQuery |
||
30 | { |
||
31 | use AuditAttributesTrait, |
||
32 | FieldAttributeTrait, |
||
33 | SourceSiteAttributeTrait; |
||
34 | |||
35 | /** |
||
36 | * @var int|null Sort order |
||
37 | */ |
||
38 | public $sortOrder; |
||
39 | |||
40 | /** |
||
41 | * @var string|string[]|null |
||
42 | */ |
||
43 | public $target; |
||
44 | |||
45 | /** |
||
46 | * @var string|string[]|null |
||
47 | */ |
||
48 | public $source; |
||
49 | |||
50 | /** |
||
51 | * @param $value |
||
52 | * @return $this |
||
53 | */ |
||
54 | public function sortOrder($value) |
||
59 | |||
60 | /** |
||
61 | * @param $value |
||
62 | * @return $this |
||
63 | */ |
||
64 | public function setSortOrder($value) |
||
68 | |||
69 | /** |
||
70 | * @param int|int[]|string|string[]|ElementInterface|ElementInterface[]|false|null $value |
||
71 | * @return static |
||
72 | */ |
||
73 | public function setTargetId($value) |
||
77 | |||
78 | /** |
||
79 | * @param int|int[]|string|string[]|ElementInterface|ElementInterface[]|false|null $value |
||
80 | * @return static |
||
81 | */ |
||
82 | public function targetId($value) |
||
86 | |||
87 | /** |
||
88 | * @param int|int[]|string|string[]|ElementInterface|ElementInterface[]|false|null $value |
||
89 | * @return static |
||
90 | */ |
||
91 | public function setTarget($value) |
||
96 | |||
97 | /** |
||
98 | * @param int|int[]|string|string[]|ElementInterface|ElementInterface[]|false|null $value |
||
99 | * @return static |
||
100 | */ |
||
101 | public function target($value) |
||
105 | |||
106 | |||
107 | /** |
||
108 | * @param int|int[]|string|string[]|ElementInterface|ElementInterface[]|false|null $value |
||
109 | * @return static |
||
110 | */ |
||
111 | public function setSourceId($value) |
||
115 | |||
116 | /** |
||
117 | * @param int|int[]|string|string[]|ElementInterface|ElementInterface[]|false|null $value |
||
118 | * @return static |
||
119 | */ |
||
120 | public function sourceId($value) |
||
124 | |||
125 | /** |
||
126 | * @param int|int[]|string|string[]|ElementInterface|ElementInterface[]|false|null $value |
||
127 | * @return static |
||
128 | */ |
||
129 | public function setSource($value) |
||
134 | |||
135 | /** |
||
136 | * @param int|int[]|string|string[]|ElementInterface|ElementInterface[]|false|null $value |
||
137 | * @return static |
||
138 | */ |
||
139 | public function source($value) |
||
143 | |||
144 | /** |
||
145 | * @inheritdoc |
||
146 | */ |
||
147 | public function init() |
||
159 | |||
160 | /** |
||
161 | * @inheritdoc |
||
162 | * @throws QueryAbortedException |
||
163 | */ |
||
164 | public function prepare($builder) |
||
192 | |||
193 | /** |
||
194 | * Apply attribute conditions |
||
195 | */ |
||
196 | protected function applyFieldConditions() |
||
202 | |||
203 | /** |
||
204 | * Apply attribute conditions |
||
205 | */ |
||
206 | protected function applySiteConditions() |
||
212 | |||
213 | /** |
||
214 | * @param $value |
||
215 | * @return array|string |
||
216 | */ |
||
217 | protected function parseElementValue($value) |
||
231 | } |
||
232 |