コード例 #1
0
 /**
  * Constructor 
  */
 public function __construct()
 {
     global $ilTabs;
     $this->tabs_gui = $ilTabs;
     parent::__construct();
     $this->initUserSearchCache();
 }
コード例 #2
0
 /**
  * Constructor
  * @access public
  */
 public function __construct()
 {
     global $ilUser, $lng;
     $lng->loadLanguageModule("search");
     // put form values into "old" post variables
     $this->initStandardSearchForm(ilSearchBaseGUI::SEARCH_FORM_STANDARD);
     $this->form->checkInput();
     $new_search = isset($_POST['cmd']['performSearch']) ? true : false;
     $enabled_types = ilSearchSettings::getInstance()->getEnabledLuceneItemFilterDefinitions();
     foreach ($enabled_types as $type => $pval) {
         if ($_POST['filter_type'][$type] == 1) {
             $_POST["search"]["details"][$type] = $_POST['filter_type'][$type];
         }
     }
     $_POST["search"]["string"] = $_POST["term"];
     $_POST["search"]["combination"] = $_POST["combination"];
     $_POST["search"]["type"] = $_POST["type"];
     $_SESSION['search_root'] = $_POST["area"];
     $this->root_node = $_SESSION['search_root'] ? $_SESSION['search_root'] : ROOT_FOLDER_ID;
     $this->setType($_POST['search']['type'] ? $_POST['search']['type'] : $_SESSION['search']['type']);
     $this->setCombination($_POST['search']['combination'] ? $_POST['search']['combination'] : $_SESSION['search']['combination']);
     $this->setString($_POST['search']['string'] ? $_POST['search']['string'] : $_SESSION['search']['string']);
     #$this->setDetails($_POST['search']['details'] ? $_POST['search']['details'] : $_SESSION['search']['details']);
     $this->setDetails($new_search ? $_POST['search']['details'] : $_SESSION['search']['details']);
     parent::__construct();
 }
コード例 #3
0
 /**
  * Constructor 
  */
 public function __construct()
 {
     global $ilTabs;
     $this->tabs_gui = $ilTabs;
     parent::__construct();
     $this->fields = ilLuceneAdvancedSearchFields::getInstance();
     $this->initUserSearchCache();
 }