'added DESC'); protected function _init() { parent::_init(); $this->_filterQueryDescriptionFormat = 'Search will be done by "Request", "Referrer", "Ip Address", ' . '"User Agent" or "Added".'; return $this; } protected function _bindListColumns(Qs_ViewController_List $list) { $list->addColumn('no', 'no') ->addColumn('text','referrerMode', array('attribs' => array('align' => 'center'))) ->addColumn('text', 'added', array('orderBy' => 'added')) ->addColumn( 'enum', 'isAjax', array( 'orderBy' => 'isAjax', 'attribs' => array('align' => 'center'), 'values' => array('y' => 'Yes', 'n' => 'No') ) ) ->addColumn('text', 'request', array('orderBy' => 'request', 'truncateLength' => 500)) ->addColumn('browser', 'id', array('title' => 'Browser Information')) ->addColumn('options', 'options', array('actions' => 'delete')); return $this; } protected function _getDefaultLinks() { return array( 'clear' => array('attribs' => array('onclick' => "return confirm('Do you really want to clear the log?');")) ); } protected function _doClear() { $this->dataObj->clear(); $this->_doBack(); } protected function _bindFilterFields(Qs_Form $form) { $form->addElement( 'select', 'modeId', array( 'label' => 'Mode', 'multiOptions' => array('' => 'All') + (array) $this->dataObj->getNotFoundModes(), 'onchange' => 'this.form.submit();', 'order' => 1 ) ); return parent::_bindFilterFields($form); } }