1 | <?php |
||
31 | class AssociationQuery extends CacheableActiveQuery |
||
32 | { |
||
33 | use AuditAttributesTrait, |
||
34 | FieldAttributeTrait, |
||
35 | SiteAttributeTrait; |
||
36 | |||
37 | /** |
||
38 | * @var int|null Sort order |
||
39 | */ |
||
40 | public $sortOrder; |
||
41 | |||
42 | /** |
||
43 | * @var string|string[]|null |
||
44 | */ |
||
45 | public $target; |
||
46 | |||
47 | /** |
||
48 | * @var string|string[]|null |
||
49 | */ |
||
50 | public $source; |
||
51 | |||
52 | /** |
||
53 | * @param $value |
||
54 | * @return $this |
||
55 | */ |
||
56 | public function sortOrder($value) |
||
61 | |||
62 | /** |
||
63 | * @param $value |
||
64 | * @return $this |
||
65 | */ |
||
66 | public function setSortOrder($value) |
||
70 | |||
71 | /** |
||
72 | * @param int|int[]|string|string[]|ElementInterface|ElementInterface[]|false|null $value |
||
73 | * @return static |
||
74 | */ |
||
75 | public function setTargetId($value) |
||
79 | |||
80 | /** |
||
81 | * @param int|int[]|string|string[]|ElementInterface|ElementInterface[]|false|null $value |
||
82 | * @return static |
||
83 | */ |
||
84 | public function targetId($value) |
||
88 | |||
89 | /** |
||
90 | * @param int|int[]|string|string[]|ElementInterface|ElementInterface[]|false|null $value |
||
91 | * @return static |
||
92 | */ |
||
93 | public function setTarget($value) |
||
98 | |||
99 | /** |
||
100 | * @param int|int[]|string|string[]|ElementInterface|ElementInterface[]|false|null $value |
||
101 | * @return static |
||
102 | */ |
||
103 | public function target($value) |
||
107 | |||
108 | |||
109 | /** |
||
110 | * @param int|int[]|string|string[]|ElementInterface|ElementInterface[]|false|null $value |
||
111 | * @return static |
||
112 | */ |
||
113 | public function setSourceId($value) |
||
117 | |||
118 | /** |
||
119 | * @param int|int[]|string|string[]|ElementInterface|ElementInterface[]|false|null $value |
||
120 | * @return static |
||
121 | */ |
||
122 | public function sourceId($value) |
||
126 | |||
127 | /** |
||
128 | * @param int|int[]|string|string[]|ElementInterface|ElementInterface[]|false|null $value |
||
129 | * @return static |
||
130 | */ |
||
131 | public function setSource($value) |
||
136 | |||
137 | /** |
||
138 | * @param int|int[]|string|string[]|ElementInterface|ElementInterface[]|false|null $value |
||
139 | * @return static |
||
140 | */ |
||
141 | public function source($value) |
||
145 | |||
146 | /** |
||
147 | * @inheritdoc |
||
148 | */ |
||
149 | public function init() |
||
161 | |||
162 | /** |
||
163 | * @inheritdoc |
||
164 | * @throws QueryAbortedException |
||
165 | */ |
||
166 | public function prepare($builder) |
||
194 | |||
195 | /** |
||
196 | * Apply attribute conditions |
||
197 | */ |
||
198 | protected function applyFieldConditions() |
||
204 | |||
205 | /** |
||
206 | * Apply attribute conditions |
||
207 | */ |
||
208 | protected function applySiteConditions() |
||
216 | |||
217 | /** |
||
218 | * @param $value |
||
219 | * @return array|string |
||
220 | */ |
||
221 | protected function parseElementValue($value) |
||
235 | } |
||
236 |