/** * Set the model to be used by the bridge. * * This method exist to allow overruling in implementation classes * * @param \MUtil_Model_ModelAbstract $model * @return \MUtil_Model_Bridge_TableBridge */ public function setModel(\MUtil_Model_ModelAbstract $model) { $this->sortAscParam = $model->getSortParamAsc(); $this->sortDescParam = $model->getSortParamDesc(); if ($sort = $model->getSort()) { $this->setSort($sort); } return parent::setModel($model); }