/** * Initialize the object's search settings from a request object. * * @param \Zend\StdLib\Parameters $request Parameter object representing user * request. * * @return void */ protected function initSearch($request) { // Special case -- did we get a list of IDs instead of a standard query? $ids = $request->get('overrideIds', null); if (is_array($ids)) { $this->setQueryIDs($ids); } else { // Use standard initialization: parent::initSearch($request); } }
/** * Initialize the object's search settings from a request object. * * @param \Zend\StdLib\Parameters $request Parameter object representing user * request. * * @return void */ protected function initSearch($request) { // Special case -- did we get a list of IDs instead of a standard query? $ids = $request->get('overrideIds', null); if (is_array($ids) && !empty($ids)) { $this->setQueryIDs($ids); } else { // Use standard initialization: parent::initSearch($request); // Another special case -- are we doing a tag search? $tag = $request->get('tag', ''); if (!empty($tag)) { $this->setBasicSearch($tag, 'tag'); } if ($this->getSearchHandler() == 'tag') { $this->initTagSearch(); } } }