| 1 | <?php |
||
| 5 | abstract class Query extends \yii\db\Query |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var FieldFactoryInterface |
||
| 9 | */ |
||
| 10 | protected $fieldFactory; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $modelClass; |
||
| 16 | |||
| 17 | public function __construct(FieldFactoryInterface $filterFactory, array $config = []) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return Field[] |
||
| 26 | */ |
||
| 27 | public function getFields() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param Field[] $fields |
||
| 34 | * @return $this |
||
| 35 | */ |
||
| 36 | protected function selectByFields($fields) |
||
| 46 | |||
| 47 | public function restoreHierarchy($row) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return mixed |
||
| 62 | */ |
||
| 63 | abstract protected function attributesMap(); |
||
| 64 | } |
||
| 65 |