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