/** * Constructor * @param object $container container gui object */ public function __construct($container = null, $a_mode = self::MODE_LUCENE) { global $tpl, $lng, $ilCtrl; $this->mode = $a_mode; $this->lng = $lng; $this->container = $container; $this->ctrl = $ilCtrl; $this->initReferences(); if (isset($_GET['details'])) { include_once './Services/Object/classes/class.ilSubItemListGUI.php'; ilSubItemListGUI::setShowDetails((int) $_GET['details']); } }
/** * Search (button pressed) * @return */ protected function search() { if (!$this->form->checkInput()) { $this->search_cache->deleteCachedEntries(); // Reset details include_once './Services/Object/classes/class.ilSubItemListGUI.php'; ilSubItemListGUI::resetDetails(); $this->showSearchForm(); return false; } unset($_SESSION['max_page']); $this->search_cache->deleteCachedEntries(); // Reset details include_once './Services/Object/classes/class.ilSubItemListGUI.php'; ilSubItemListGUI::resetDetails(); $this->performSearch(); }
/** * Store new root node */ protected function storeRoot() { $form = $this->getSearchAreaForm(); $this->root_node = $form->getItemByPostVar('area')->getValue(); $this->search_cache->setRoot($this->root_node); $this->search_cache->save(); $this->search_cache->deleteCachedEntries(); include_once './Services/Object/classes/class.ilSubItemListGUI.php'; ilSubItemListGUI::resetDetails(); $this->performSearch(); }
protected function search() { if (!is_array($this->search_cache->getQuery())) { // TOD: handle empty advances search ilUtil::sendInfo($this->lng->txt('msg_no_search_string')); $this->showSavedResults(); return false; } unset($_SESSION['max_page']); $this->search_cache->deleteCachedEntries(); // Reset details include_once './Services/Object/classes/class.ilSubItemListGUI.php'; ilSubItemListGUI::resetDetails(); $this->performSearch(); }
/** * Constructor * @param * @return */ public function __construct($a_cmd_class) { $this->cmdClass = $a_cmd_class; self::$MAX_SUBITEMS = ilSearchSettings::getInstance()->getMaxSubitems(); }