예제 #1
0
파일: Params.php 프로젝트: htw-pk15/vufind
 /**
  * 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);
     }
 }
예제 #2
0
 /**
  * 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();
         }
     }
 }