getRestParams(); if (!$params || count($params) != 1) { $this->_doc->display404(); } if (is_numeric($params[0]) && $this->_serviceTitle = $this->_getDataObj()->getNaicsCodeData($params[0], 'title') ) { $this->_getDataObj()->addFilter(['naicsCode' => $params[0]]); } else { $this->_doc->display404(); } return $this; } protected function _doList() { $this->_doc->setHeader('Vendors Who Provide "' . $this->_serviceTitle . '" Service'); return parent::_doList(); } protected function _getDefaultLinks() { $links = parent::_getDefaultLinks(); $links['list'] = ['title' => 'Back to Vendor Classifications', 'url' => VendorService::getPage('url')]; return $links; } protected function _getFormOptions($type = null) { $options = parent::_getFormOptions($type); $vendorId = null; if ($type == 'filter') { $options['vendorAutocompleteUrl'] = VendorAutocompleteAdminView::getPage('url'); if (($vendorId = Qs_Request::getGetValue('vendorId'))) { $options['vendorAutocompleteTitle'] = VendorAutocompleteAdminObj::getAutocompleteItemTitle($vendorId); } } return $options; } }