Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function run() |
||
21 | { |
||
22 | /** |
||
23 | * @var ActiveRecord $searchModel |
||
24 | */ |
||
25 | $classModel = $this->controller->modelClass; |
||
26 | $searchModel = $this->controller->modelSearchClass ? new $this->controller->modelSearchClass : null; |
||
27 | $query = $this->controller->getModelQuery($classModel); |
||
28 | $dataProvider = $this->controller->queryToDataProvider($query); |
||
29 | |||
30 | $this->controller->indexCondition($query); |
||
31 | $this->controller->applySearch($query, $dataProvider, $searchModel); |
||
32 | |||
33 | $params = $this->controller->indexParams(['searchModel' => $searchModel, 'dataProvider' => $dataProvider]); |
||
34 | return $this->controller->render($this->view, $params); |
||
35 | } |
||
36 | } |