protected function prepareModels() { if ($refinerSet = $this->getRefinerSet()) { $refinerSet->applyTo($this->query); } return parent::prepareModels(); }
/** * @inheritdoc */ protected function prepareModels() { $this->setPagination(['pageParam' => $this->pageParam, 'pageSizeParam' => $this->pageSizeParam]); $this->setSort(['sortParam' => $this->sortParam, 'enableMultiSort' => true]); $this->setFilter(); return parent::prepareModels(); }
/** * @inheritdoc */ protected function prepareModels() { $origQuery = $this->query; $this->modifyQuery($this->query); $r = parent::prepareModels(); $this->query = $origQuery; return $r; }
/** * @inheritdoc */ protected function prepareModels() { $models = parent::prepareModels(); if (null !== $this->formatter) { foreach ($models as $index => $model) { $models[$index] = call_user_func($this->formatter, $model); } } return $models; }
protected function prepareModels() { return array_map([$this->module, 'attachBehaviorsToModel'], parent::prepareModels()); }
/** * @inheritdoc */ protected function prepareModels() { $models = parent::prepareModels(); return array_map($this->mapFunction, $models); }