true, 'defaultOrderBy' => 'title'); protected $_filterFields = array('Subject', 'Summary'); public function exec() { App_Doc_Acl::requireDirectorFileAccess(); return parent::exec(); } /** * @param Qs_Form $form * * @return $this * @throws Zend_Form_Exception */ protected function _bindFilterFields($form) { parent::_bindFilterFields($form); $this->_bindFilterButtons($form); $form->getElement('query')->setLabel('Search:'); return $this; } protected function _bindFilterButtons($form) { parent::_bindFilterButtons($form); $form->removeElement('btnCancel'); $form->getElement('btnSearch')->setAttrib('class', 'buttons search_btn'); return $this; } /** * @param Qs_ViewController_List $list * * @return $this */ protected function _bindListColumns($list) { $list->addColumn('text', 'title', array('title' => 'Subject')); $list->addColumn('description', 'description', array('title' => 'Summary', 'defaultText' => '-')); $list->addColumn('file', 'file', array('title' => 'Document')); return $this; } protected function _doList() { // list accordion $this->_doc->addScript('js/app/list-accordion.js'); return parent::_doList(); } public static function getPageUrl() { return Qs_SiteMap::findFirstLocal(null, array('type' => 'DirectorFile_'), null, 'url'); } }