| 1 | <?php |
||
| 20 | class ProviderActiveQuery extends ActiveQuery |
||
| 21 | { |
||
| 22 | use ProviderAttributesTrait, |
||
| 23 | AuditAttributesTrait; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @inheritdoc |
||
| 27 | */ |
||
| 28 | public $orderBy = [ |
||
| 29 | 'enabled' => SORT_DESC, |
||
| 30 | 'dateUpdated' => SORT_DESC |
||
| 31 | ]; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @inheritdoc |
||
| 35 | */ |
||
| 36 | public function init() |
||
| 42 | |||
| 43 | /******************************************* |
||
| 44 | * PREPARE |
||
| 45 | *******************************************/ |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @inheritdoc |
||
| 49 | * |
||
| 50 | * @throws QueryAbortedException if it can be determined that there won’t be any results |
||
| 51 | */ |
||
| 52 | public function prepare($builder) |
||
| 59 | } |
||
| 60 |