Пример #1
0
 /**
  * Default processing of $model from standard settings
  *
  * @param \MUtil_Model_ModelAbstract $model
  */
 protected final function prepareModel(\MUtil_Model_ModelAbstract $model)
 {
     if ($this->sortParamAsc) {
         $model->setSortParamAsc($this->sortParamAsc);
     }
     if ($this->sortParamDesc) {
         $model->setSortParamDesc($this->sortParamDesc);
     }
     $this->processFilterAndSort($model);
     if ($this->_fixedFilter) {
         $model->addFilter($this->_fixedFilter);
     }
     if ($this->extraFilter) {
         $model->addFilter($this->extraFilter);
     }
     if ($this->extraSort) {
         $model->addSort($this->extraSort);
     }
     if ($this->_fixedSort) {
         $model->addSort($this->_fixedSort);
     }
 }