_getDataObj()->getFilter(); $linkOptions['action'] = 'exportCsv'; $links['exportCsv'] = ['title' => 'Export to CSV', 'url' => $this->url($linkOptions)]; return $links; } protected function _initFromForm(\Qs_Form $form) { $data = $form->getValues(); $data['bought'] = 'y'; $this->_getDataObj()->initFromForm($data); return $this; } public static function getUserAutocompleteUrl() { return static::getPage('url') . '?action=autocomplete'; } protected function _doAutocomplete() { exit; } /** * get param: string $term */ protected function _doAutocompleteAjax() { $term = Qs_Request::getGetValue('term'); $data = $this->_getDataObj()->getAutocomplete($term); $this->_displayJson($data); } }