prepareModels() 보호된 메소드

protected prepareModels ( )
예제 #1
0
 protected function prepareModels()
 {
     if ($refinerSet = $this->getRefinerSet()) {
         $refinerSet->applyTo($this->query);
     }
     return parent::prepareModels();
 }
예제 #2
0
 /**
  * @inheritdoc
  */
 protected function prepareModels()
 {
     $this->setPagination(['pageParam' => $this->pageParam, 'pageSizeParam' => $this->pageSizeParam]);
     $this->setSort(['sortParam' => $this->sortParam, 'enableMultiSort' => true]);
     $this->setFilter();
     return parent::prepareModels();
 }
예제 #3
0
 /**
  * @inheritdoc
  */
 protected function prepareModels()
 {
     $origQuery = $this->query;
     $this->modifyQuery($this->query);
     $r = parent::prepareModels();
     $this->query = $origQuery;
     return $r;
 }
예제 #4
0
 /**
  * @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;
 }
예제 #5
0
 protected function prepareModels()
 {
     return array_map([$this->module, 'attachBehaviorsToModel'], parent::prepareModels());
 }
예제 #6
0
 /**
  * @inheritdoc
  */
 protected function prepareModels()
 {
     $models = parent::prepareModels();
     return array_map($this->mapFunction, $models);
 }