1 | <?php |
||
13 | class JsonApiDataProvider extends ActiveDataProvider |
||
14 | { |
||
15 | private $_filter; |
||
16 | |||
17 | protected function prepareModels() |
||
22 | |||
23 | /** |
||
24 | * Returns the filtering object used by this data provider. |
||
25 | * @return Filter|boolean the filtering object. If this is false, it means the filtering is disabled. |
||
26 | */ |
||
27 | public function getFilter() |
||
35 | |||
36 | /** |
||
37 | * Sets the filter definition for this data provider. |
||
38 | * @param array|Filter|boolean $value the filter definition to be used by this data provider. |
||
39 | * This can be one of the following: |
||
40 | * |
||
41 | * - a configuration array for creating the filter definition object. The "class" element defaults |
||
42 | * to 'tuyakhov\jsonapi\data\Filter' |
||
43 | * - an instance of [[Filter]] or its subclass |
||
44 | * - false, if sorting needs to be disabled. |
||
45 | * |
||
46 | * @throws InvalidParamException |
||
47 | */ |
||
48 | public function setFilter($value) |
||
62 | |||
63 | } |