_restAlias) && false === filter_var($this->_restAlias, FILTER_VALIDATE_INT, array('options' => array('min_range' => 0))) ) { $this->_doc->display404(); } $this->_initYear(); return parent::exec(); } protected function _addListItem($list = null) { if (!empty($this->_listIpp)) { if (null == $list) { $list = $this->_getList(); } $list->setIpp($this->_listIpp); } $item = $this->_getListItem($list); $item['viewAlias'] = $this->_getViewAlias(); $item['imageSizes'] = App_Award_Abstract_Obj::getImageSizes(); $item['title'] = $this->_listTitle; $this->_addLinksItem(); $item['tpl'] = $this->getTemplate($this->_listTemplate); $this->_addItem($item); $this->_addResources(); return $this; } private function _addResources() { $this->_doc->addStylesheet('css/thirdpart/accordion.css'); $this->_doc->addScript('js/accordion.js'); $this->_doc->addInlineScript('disableAccordionOpen', 'disableAccordionOpen();'); return $this; } protected function _getBackUrl($sessionName = null) { if (is_null($sessionName)){ $sessionName = CURRENT_PAGE; } $session = new Qs_Session_Namespace($sessionName); if (isset($session->backUrl)) { return $session->backUrl; } return ''; } protected function _getViewAlias() { if (null == $this->_viewAlias) { $this->_viewAlias = Qs_SiteMap::find(null, array('type' => 'Award_'), null, 'fullAlias'); } return $this->_viewAlias; } protected function _getListOptions() { $options = parent::_getListOptions(); if (!empty($this->_years)) { $options['year'] = $this->_years['year']; $options['years'] = $this->_years['years']; } return $options; } protected function _setYearFilter($year) { $this->_getDataObj()->addFilter(array('year' => $year)); } }