public function setParams($params) { parent::setParams($params); if ($this->getParam('root')) { $this->setRoot($this->getParam('root')); } }