10); protected $_fullViewAlias = 'search/department'; public function exec() { $showEmptyDepartments = $this->doc->acl->isAllowed($this->doc->getAuthData('id'), 'department', 'add') || $this->doc->acl->isAllowed($this->doc->getAuthData('id'), 'process', 'add'); $this->dataObj->setShowEmptyDepartments($showEmptyDepartments); parent::exec(); } protected function _bindListColumns(Qs_ViewController_List $list) { $list->addColumn('name', 'name', array('title' => 'Department or Process Name')); return $this; } protected function _addItem($item, $groupName = null) { $item['query'] = $this->_querySearch; $item['itemCount'] = $this->dataObj->getCountMatchItem(); $item['departmentLandingPage'] = Qs_SiteMap::findFirst( null, array('type' => 'Department_'), array('type' => 'landing'), 'fullAlias' ); $item['processLandingPage'] = Qs_SiteMap::findFirst( null, array('type' => 'Process_Part_'), null, 'fullAlias' ); return parent::_addItem($item, $groupName = null); } protected function _doListAjax() { $this->_addFilterItem(); $this->_addListItem(null, 'ac-list.tpl'); return $this; } }