| 1 | <?php |
||
| 19 | class SettingSearch extends Setting |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @return array |
||
| 23 | */ |
||
| 24 | 1 | public function rules() |
|
| 25 | { |
||
| 26 | return [ |
||
| 27 | 1 | [['id'], 'integer'], |
|
| 28 | [['active'], 'boolean'], |
||
| 29 | [['type', 'section', 'key', 'value', 'created', 'modified'], 'safe'], |
||
| 30 | ]; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | 1 | public function scenarios() |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @param $params |
||
| 44 | * @return ActiveDataProvider |
||
| 45 | */ |
||
| 46 | 1 | public function search($params) |
|
| 73 | } |
||
| 74 |