1 | <?php |
||
27 | class ProviderQuery extends Query |
||
28 | { |
||
29 | use ProviderAttributesTrait, |
||
30 | AuditAttributesTrait; |
||
31 | |||
32 | /** |
||
33 | * @inheritdoc |
||
34 | */ |
||
35 | public $orderBy = [ |
||
36 | 'enabled' => SORT_DESC, |
||
37 | 'dateUpdated' => SORT_DESC |
||
38 | ]; |
||
39 | |||
40 | /** |
||
41 | * @inheritdoc |
||
42 | */ |
||
43 | public function init() |
||
60 | |||
61 | /** |
||
62 | * @inheritdoc |
||
63 | */ |
||
64 | public function populate($rows) |
||
76 | |||
77 | /** |
||
78 | * @inheritdoc |
||
79 | * @return AbstractProvider |
||
80 | * @throws \yii\base\InvalidConfigException |
||
81 | */ |
||
82 | public function one($db = null) |
||
90 | |||
91 | /** |
||
92 | * @param array $config |
||
93 | * @return mixed |
||
94 | * @throws \yii\base\InvalidConfigException |
||
95 | */ |
||
96 | protected function createObject(array $config, bool $checkSettings = true) |
||
108 | |||
109 | /** |
||
110 | * @param array $config |
||
111 | * @return array |
||
112 | */ |
||
113 | protected function prepareConfig(array $config = [], bool $checkSettings = true): array |
||
130 | |||
131 | /** |
||
132 | * @param array $config |
||
133 | * @return array |
||
134 | */ |
||
135 | protected function extractSettings(array &$config): array |
||
150 | |||
151 | /******************************************* |
||
152 | * PREPARE |
||
153 | *******************************************/ |
||
154 | |||
155 | /** |
||
156 | * @inheritdoc |
||
157 | * |
||
158 | * @throws QueryAbortedException if it can be determined that there won’t be any results |
||
159 | */ |
||
160 | public function prepare($builder) |
||
167 | } |
||
168 |