コード例 #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
ファイル: Params.php プロジェクト: no-reply/cbpl-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) && !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();
         }
     }
 }