ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSearchGUI Class Reference

Class ilSearchGUI. More...

+ Inheritance diagram for ilSearchGUI:
+ Collaboration diagram for ilSearchGUI:

Public Member Functions

 __construct ()
 Constructor public.
 executeCommand ()
 Control public.
 setType ($a_type)
 Set/get type of search (detail or 'fast' search) public.
 getType ()
 setCombination ($a_combination)
 Set/get combination of search ('and' or 'or') public.
 getCombination ()
 setString ($a_str)
 Set/get search string public.
 getString ()
 setDetails ($a_details)
 Set/get details (object types for details search) public.
 getDetails ()
 getRootNode ()
 setRootNode ($a_node_id)
 remoteSearch ()
 autoComplete ()
 Data resource for autoComplete.
 showSearch ()
 showSavedResults ()
 performSearch ()
 Perform search.
 prepareOutput ()
__performDetailsSearch (&$query_parser, &$result)
__parseQueryString ()
 parse query string, using query parser instance
__searchObjects (&$query_parser)
 Search in obect title,desctiption.
__searchMeta (&$query_parser, $a_type)
 Search in object meta data (keyword)
 __getFilter ()
 Get object type for filter (If detail search is enabled)
- Public Member Functions inherited from ilSearchBaseGUI
 ilSearchBaseGUI ()
 Constructor public.
 initStandardSearchForm ($a_mode)
 Init standard search form.
 getSearchAreaForm ()
 Init standard search form.
 handleCommand ($a_cmd)
 Handle command.
 addToDeskObject ()
 Interface methods.
 removeFromDeskObject ()
 Remove from dektop.
 delete ()
 Show deletion screen.
 cancelDelete ()
 Cancel delete.
 performDelete ()
 Delete objects.
 cut ()
 Interface ilAdministrationCommandHandler.
 link ()
 Interface ilAdministrationCommandHandler.
 paste ()
 Paste.
 showLinkIntoMultipleObjectsTree ()
 Target selection link.
 showMoveIntoObjectTree ()
 Target selection cut.
 performPasteIntoMultipleObjects ()
 Perform paste into multiple objects.
 clear ()
 clear clipboard
 enableAdministrationPanel ()
 Enable administration panel.
 disableAdministrationPanel ()
 Disable administration panel.
 addLocator ()
 Add Locator.

Data Fields

 $root_node
 $combination
 $string
 $type
- Data Fields inherited from ilSearchBaseGUI
const SEARCH_FAST = 1
const SEARCH_DETAILS = 2
const SEARCH_AND = 'and'
const SEARCH_OR = 'or'
const SEARCH_FORM_LUCENE = 1
const SEARCH_FORM_STANDARD = 2
const SEARCH_FORM_USER = 3
 $settings = null
 $ilias = null
 $lng = null
 $tpl = null

Protected Member Functions

 storeRoot ()
 Store new root node.
 initUserSearchCache ()
 Init user search cache.
- Protected Member Functions inherited from ilSearchBaseGUI
 addPager ($result, $a_session_key)
 Add Pager.
 buildSearchAreaPath ($a_root_node)
 Build path for search area.

Protected Attributes

 $search_cache = null
- Protected Attributes inherited from ilSearchBaseGUI
 $ctrl = null

Detailed Description

Class ilSearchGUI.

GUI class for 'simple' search

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Version
Id:
class.ilSearchGUI.php 56581 2014-12-18 13:07:47Z smeyer

ilSearchGUI: ilPropertyFormGUI ilSearchGUI: ilObjectGUI, ilContainerGUI ilSearchGUI: ilObjCategoryGUI, ilObjCourseGUI, ilObjFolderGUI, ilObjGroupGUI ilSearchGUI: ilObjRootFolderGUIGUI, ilObjectCopyGUI

Definition at line 22 of file class.ilSearchGUI.php.

Constructor & Destructor Documentation

ilSearchGUI::__construct ( )

Constructor public.

Definition at line 36 of file class.ilSearchGUI.php.

References $_POST, $_SESSION, $ilUser, ilSearchBaseGUI\$lng, $type, ilSearchSettings\getInstance(), ilSearchBaseGUI\initStandardSearchForm(), ilSearchBaseGUI\SEARCH_FORM_STANDARD, setCombination(), setDetails(), setString(), and setType().

{
global $ilUser, $lng;
$lng->loadLanguageModule("search");
// put form values into "old" post variables
$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']);
}

+ Here is the call graph for this function:

Member Function Documentation

ilSearchGUI::__getFilter ( )

Get object type for filter (If detail search is enabled)

Returns
array object types public

Definition at line 571 of file class.ilSearchGUI.php.

References getDetails(), getType(), and ilSearchBaseGUI\SEARCH_DETAILS.

Referenced by __performDetailsSearch(), __searchMeta(), and __searchObjects().

{
{
return false;
}
foreach($this->getDetails() as $key => $detail_type)
{
if(!$detail_type)
{
continue;
}
switch($key)
{
case 'lms':
$filter[] = 'lm';
$filter[] = 'dbk';
$filter[] = 'pg';
$filter[] = 'st';
$filter[] = 'sahs';
$filter[] = 'htlm';
break;
case 'frm':
$filter[] = 'frm';
break;
case 'glo':
$filter[] = 'glo';
break;
case 'exc':
$filter[] = 'exc';
break;
case 'mcst':
$filter[] = 'mcst';
break;
case 'tst':
$filter[] = 'tst';
$filter[] = 'svy';
$filter[] = 'qpl';
$filter[] = 'spl';
break;
case 'mep':
$filter[] = 'mep';
$filter[] = 'mob';
break;
case 'fil':
$filter[] = 'file';
break;
case 'wiki':
$filter[] = 'wpg';
break;
default:
$filter[] = $key;
}
}
return $filter ? $filter : array();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilSearchGUI::__parseQueryString ( )

parse query string, using query parser instance

Returns
object of query parser or error message if an error occured public

Definition at line 500 of file class.ilSearchGUI.php.

References getCombination(), getString(), and ilUtil\stripSlashes().

Referenced by performSearch().

{
include_once 'Services/Search/classes/class.ilQueryParser.php';
$query_parser = new ilQueryParser(ilUtil::stripSlashes($this->getString()));
$query_parser->setCombination($this->getCombination());
$query_parser->parse();
if(!$query_parser->validate())
{
return $query_parser->getMessage();
}
return $query_parser;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilSearchGUI::__performDetailsSearch ( $query_parser,
$result 
)

Definition at line 405 of file class.ilSearchGUI.php.

References $result, $type, __getFilter(), ilObjectSearchFactory\_getExerciseSearchInstance(), ilObjectSearchFactory\_getForumSearchInstance(), ilObjectSearchFactory\_getGlossaryDefinitionSearchInstance(), ilObjectSearchFactory\_getLMContentSearchInstance(), ilObjectSearchFactory\_getMediaPoolSearchInstance(), ilObjectSearchFactory\_getObjectSearchInstance(), ilObjectSearchFactory\_getTestSearchInstance(), ilObjectSearchFactory\_getWikiContentSearchInstance(), and getDetails().

Referenced by performSearch().

{
foreach($this->getDetails() as $type => $enabled)
{
if(!$enabled)
{
continue;
}
switch($type)
{
case 'crs':
$crs_search->setFilter(array('crs'));
$result->mergeEntries($crs_search->performSearch());
break;
case 'grp':
$grp_search->setFilter(array('grp'));
$result->mergeEntries($grp_search->performSearch());
break;
case 'lms':
$content_search =& ilObjectSearchFactory::_getLMContentSearchInstance($query_parser);
$content_search->setFilter($this->__getFilter());
$result->mergeEntries($content_search->performSearch());
break;
case 'frm':
$forum_search =& ilObjectSearchFactory::_getForumSearchInstance($query_parser);
$forum_search->setFilter($this->__getFilter());
$result->mergeEntries($forum_search->performSearch());
break;
case 'glo':
// Glossary term definition pages
$gdf_search->setFilter(array('gdf'));
$result->mergeEntries($gdf_search->performSearch());
// Glossary terms
$result->mergeEntries($gdf_term_search->performSearch());
break;
case 'exc':
$exc_search->setFilter($this->__getFilter());
$result->mergeEntries($exc_search->performSearch());
break;
case 'mcst':
$mcst_search =& ilObjectSearchFactory::_getMediaCastSearchInstance($query_parser);
$result->mergeEntries($mcst_search->performSearch());
break;
case 'tst':
$tst_search =& ilObjectSearchFactory::_getTestSearchInstance($query_parser);
$tst_search->setFilter($this->__getFilter());
$result->mergeEntries($tst_search->performSearch());
break;
case 'mep':
$mep_search->setFilter($this->__getFilter());
$result->mergeEntries($mep_search->performSearch());
// Mob keyword search
$mob_search->setFilter($this->__getFilter());
$result->mergeEntries($mob_search->performKeywordSearch());
break;
case 'wiki':
$wiki_search->setFilter($this->__getFilter());
$result->mergeEntries($wiki_search->performSearch());
/*$result_meta =& $this->__searchMeta($query_parser,'title');
$result->mergeEntries($result_meta);
$result_meta =& $this->__searchMeta($query_parser,'description');
$result->mergeEntries($result_meta);*/
break;
}
}
return $result;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilSearchGUI::__searchMeta ( $query_parser,
  $a_type 
)

Search in object meta data (keyword)

Returns
object result object public

Definition at line 537 of file class.ilSearchGUI.php.

References __getFilter(), ilObjectSearchFactory\_getMetaDataSearchInstance(), getType(), and ilSearchBaseGUI\SEARCH_DETAILS.

Referenced by performSearch().

{
include_once 'Services/Search/classes/class.ilObjectSearchFactory.php';
$meta_search =& ilObjectSearchFactory::_getMetaDataSearchInstance($query_parser);
{
$meta_search->setFilter($this->__getFilter());
}
switch($a_type)
{
case 'keyword':
$meta_search->setMode('keyword');
break;
case 'contribute':
$meta_search->setMode('contribute');
break;
case 'title':
$meta_search->setMode('title');
break;
case 'description':
$meta_search->setMode('description');
break;
}
return $meta_search->performSearch();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilSearchGUI::__searchObjects ( $query_parser)

Search in obect title,desctiption.

Returns
object result object public

Definition at line 519 of file class.ilSearchGUI.php.

References __getFilter(), ilObjectSearchFactory\_getObjectSearchInstance(), getType(), and ilSearchBaseGUI\SEARCH_DETAILS.

Referenced by performSearch().

{
include_once 'Services/Search/classes/class.ilObjectSearchFactory.php';
$obj_search =& ilObjectSearchFactory::_getObjectSearchInstance($query_parser);
{
$obj_search->setFilter($this->__getFilter());
}
return $obj_search->performSearch();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilSearchGUI::autoComplete ( )

Data resource for autoComplete.

Reimplemented from ilSearchBaseGUI.

Definition at line 203 of file class.ilSearchGUI.php.

References $_REQUEST, exit, and ilSearchAutoComplete\getList().

{
$q = $_REQUEST["term"];
include_once("./Services/Search/classes/class.ilSearchAutoComplete.php");
echo $list;
}

+ Here is the call graph for this function:

ilSearchGUI::executeCommand ( )

Control public.

Definition at line 76 of file class.ilSearchGUI.php.

References $cmd, $ilCtrl, ilSearchBaseGUI\getSearchAreaForm(), ilSearchBaseGUI\handleCommand(), initUserSearchCache(), and prepareOutput().

{
global $rbacsystem, $ilCtrl;
$next_class = $this->ctrl->getNextClass($this);
$cmd = $this->ctrl->getCmd();
switch($next_class)
{
case "ilpropertyformgui":
//$this->initStandardSearchForm(ilSearchBaseGUI::SEARCH_FORM_STANDARD);
$form = $this->getSearchAreaForm();
$this->prepareOutput();
$ilCtrl->setReturn($this, 'storeRoot');
return $ilCtrl->forwardCommand($form);
case 'ilobjectcopygui':
$this->prepareOutput();
include_once './Services/Object/classes/class.ilObjectCopyGUI.php';
$cp = new ilObjectCopyGUI($this);
$this->ctrl->forwardCommand($cp);
break;
default:
if(!$cmd)
{
$cmd = "showSavedResults";
}
$this->prepareOutput();
break;
}
return true;
}

+ Here is the call graph for this function:

ilSearchGUI::getCombination ( )

Definition at line 134 of file class.ilSearchGUI.php.

References ilSearchBaseGUI\SEARCH_OR.

Referenced by __parseQueryString().

{
return $this->combination ? $this->combination : ilSearchBaseGUI::SEARCH_OR;
}

+ Here is the caller graph for this function:

ilSearchGUI::getDetails ( )

Definition at line 158 of file class.ilSearchGUI.php.

Referenced by __getFilter(), __performDetailsSearch(), and performSearch().

{
return $this->details ? $this->details : array();
}

+ Here is the caller graph for this function:

ilSearchGUI::getRootNode ( )

Definition at line 164 of file class.ilSearchGUI.php.

Referenced by performSearch(), and showSavedResults().

{
return $this->root_node ? $this->root_node : ROOT_FOLDER_ID;
}

+ Here is the caller graph for this function:

ilSearchGUI::getString ( )

Definition at line 146 of file class.ilSearchGUI.php.

References $string.

Referenced by __parseQueryString(), and showSearch().

{
return $this->string;
}

+ Here is the caller graph for this function:

ilSearchGUI::getType ( )

Definition at line 122 of file class.ilSearchGUI.php.

References ilSearchBaseGUI\SEARCH_FAST.

Referenced by __getFilter(), __searchMeta(), __searchObjects(), and performSearch().

{
return $this->type ? $this->type : ilSearchBaseGUI::SEARCH_FAST;
}

+ Here is the caller graph for this function:

ilSearchGUI::initUserSearchCache ( )
protected

Init user search cache.

private

Definition at line 645 of file class.ilSearchGUI.php.

References $_GET, $_POST, $ilUser, ilUserSearchCache\_getInstance(), ilUserSearchCache\DEFAULT_SEARCH, and ilUtil\stripSlashes().

Referenced by executeCommand().

{
global $ilUser;
include_once('Services/Search/classes/class.ilUserSearchCache.php');
$this->search_cache = ilUserSearchCache::_getInstance($ilUser->getId());
$this->search_cache->switchSearchType(ilUserSearchCache::DEFAULT_SEARCH);
if($_GET['page_number'])
{
$this->search_cache->setResultPageNumber((int) $_GET['page_number']);
}
if(isset($_POST['cmd']['performSearch']))
{
$this->search_cache->setQuery(ilUtil::stripSlashes($_POST['term']));
$this->search_cache->save();
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilSearchGUI::performSearch ( )

Perform search.

Definition at line 290 of file class.ilSearchGUI.php.

References $_GET, $_SESSION, $ilUser, $result, __parseQueryString(), __performDetailsSearch(), __searchMeta(), __searchObjects(), ilSearchBaseGUI\addPager(), getDetails(), getRootNode(), getType(), ilSearchResultPresentation\MODE_STANDARD, ilSearchResult\read(), ilSearchBaseGUI\SEARCH_DETAILS, ilUtil\sendInfo(), and showSearch().

Referenced by remoteSearch(), and storeRoot().

{
global $ilUser;
if(!isset($_GET['page_number']) and $this->search_mode != 'in_results' )
{
unset($_SESSION['max_page']);
$this->search_cache->deleteCachedEntries();
}
if($this->getType() == ilSearchBaseGUI::SEARCH_DETAILS and !$this->getDetails())
{
ilUtil::sendInfo($this->lng->txt('search_choose_object_type'));
$this->showSearch();
return false;
}
// Step 1: parse query string
if(!is_object($query_parser =& $this->__parseQueryString()))
{
ilUtil::sendInfo($query_parser);
$this->showSearch();
return false;
}
// Step 2: perform object search. Get an ObjectSearch object via factory. Depends on fulltext or like search type.
$result =& $this->__searchObjects($query_parser);
// Step 3: perform meta keyword search. Get an MetaDataSearch object.
$result_meta =& $this->__searchMeta($query_parser,'keyword');
$result->mergeEntries($result_meta);
$result_meta =& $this->__searchMeta($query_parser,'contribute');
$result->mergeEntries($result_meta);
$result_meta =& $this->__searchMeta($query_parser,'title');
$result->mergeEntries($result_meta);
$result_meta =& $this->__searchMeta($query_parser,'description');
$result->mergeEntries($result_meta);
// Perform details search in object specific tables
{
$result = $this->__performDetailsSearch($query_parser,$result);
}
// Step 5: Search in results
if($this->search_mode == 'in_results')
{
include_once 'Services/Search/classes/class.ilSearchResult.php';
$old_result_obj = new ilSearchResult($ilUser->getId());
$old_result_obj->read();
$result->diffEntriesFromResult($old_result_obj);
}
// Step 4: merge and validate results
$result->filter($this->getRootNode(),$query_parser->getCombination() == 'and');
$result->save();
$this->showSearch();
if(!count($result->getResults()))
{
ilUtil::sendInfo($this->lng->txt('search_no_match'));
}
if($result->isLimitReached())
{
#$message = sprintf($this->lng->txt('search_limit_reached'),$this->settings->getMaxHits());
#ilUtil::sendInfo($message);
}
// Step 6: show results
$this->addPager($result,'max_page');
include_once './Services/Search/classes/class.ilSearchResultPresentation.php';
$presentation->setResults($result->getResultsForPresentation());
$presentation->setSubitemIds($result->getSubitemIds());
$presentation->setPreviousNext($this->prev_link, $this->next_link);
if($presentation->render())
{
// $this->tpl->setVariable('SEARCH_RESULTS',$presentation->getHTML());
$this->tpl->setVariable('RESULTS_TABLE',$presentation->getHTML(true));
}
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilSearchGUI::prepareOutput ( )

Reimplemented from ilSearchBaseGUI.

Definition at line 384 of file class.ilSearchGUI.php.

Referenced by executeCommand().

{
global $ilTabs, $ilHelp;
$ilHelp->setScreenIdComponent("src");
$ilTabs->addTab("search", $this->lng->txt("search"),
$this->ctrl->getLinkTarget($this));
if (!$this->settings->getHideAdvancedSearch())
{
$ilTabs->addTab("adv_search", $this->lng->txt("search_advanced"),
$this->ctrl->getLinkTargetByClass('iladvancedsearchgui'));
}
$ilTabs->activateTab("search");
}

+ Here is the caller graph for this function:

ilSearchGUI::remoteSearch ( )

Definition at line 174 of file class.ilSearchGUI.php.

References $_POST, performSearch(), setRootNode(), setString(), and ilUtil\stripSlashes().

{
$this->setString(ilUtil::stripSlashes($_POST['queryString']));
$this->setRootNode((int) $_POST['root_id']);
$this->performSearch();
}

+ Here is the call graph for this function:

ilSearchGUI::setCombination (   $a_combination)

Set/get combination of search ('and' or 'or') public.

Definition at line 130 of file class.ilSearchGUI.php.

References $_SESSION.

Referenced by __construct().

{
$_SESSION['search']['combination'] = $this->combination = $a_combination;
}

+ Here is the caller graph for this function:

ilSearchGUI::setDetails (   $a_details)

Set/get details (object types for details search) public.

Definition at line 154 of file class.ilSearchGUI.php.

References $_SESSION.

Referenced by __construct().

{
$_SESSION['search']['details'] = $this->details = $a_details;
}

+ Here is the caller graph for this function:

ilSearchGUI::setRootNode (   $a_node_id)

Definition at line 168 of file class.ilSearchGUI.php.

References $_SESSION.

Referenced by remoteSearch().

{
$_SESSION['search_root'] = $this->root_node = $a_node_id;
}

+ Here is the caller graph for this function:

ilSearchGUI::setString (   $a_str)

Set/get search string public.

Definition at line 142 of file class.ilSearchGUI.php.

References $_SESSION.

Referenced by __construct(), and remoteSearch().

{
$_SESSION['search']['string'] = $this->string = $a_str;
}

+ Here is the caller graph for this function:

ilSearchGUI::setType (   $a_type)

Set/get type of search (detail or 'fast' search) public.

Definition at line 118 of file class.ilSearchGUI.php.

References $_SESSION.

Referenced by __construct().

{
$_SESSION['search']['type'] = $this->type = $a_type;
}

+ Here is the caller graph for this function:

ilSearchGUI::showSavedResults ( )

Definition at line 251 of file class.ilSearchGUI.php.

References $ilUser, ilSearchBaseGUI\addPager(), getRootNode(), ilSearchResultPresentation\MODE_STANDARD, ilSearchResult\read(), and showSearch().

{
global $ilUser;
// Read old result sets
include_once 'Services/Search/classes/class.ilSearchResult.php';
$result_obj = new ilSearchResult($ilUser->getId());
$result_obj->read();
$result_obj->filterResults($this->getRootNode());
$this->showSearch();
// Show them
if(count($result_obj->getResults()))
{
$this->addPager($result_obj,'max_page');
include_once './Services/Search/classes/class.ilSearchResultPresentation.php';
$presentation->setResults($result_obj->getResultsForPresentation());
$presentation->setSubitemIds($result_obj->getSubitemIds());
$presentation->setPreviousNext($this->prev_link, $this->next_link);
#$presentation->setSearcher($searcher);
if($presentation->render())
{
// $this->tpl->setVariable('SEARCH_RESULTS',$presentation->getHTML());
$this->tpl->setVariable('RESULTS_TABLE',$presentation->getHTML(true));
}
}
return true;
}

+ Here is the call graph for this function:

ilSearchGUI::showSearch ( )

Definition at line 213 of file class.ilSearchGUI.php.

References $ilCtrl, ilSearchBaseGUI\$lng, ilUtil\getImagePath(), ilSearchSettings\getInstance(), ilSearchBaseGUI\getSearchAreaForm(), getString(), ilUtil\img(), ilOverlayGUI\initJavascript(), ilSearchBaseGUI\initStandardSearchForm(), ilSearchSettings\OPERATOR_AND, ilUtil\prepareFormOutput(), and ilSearchBaseGUI\SEARCH_FORM_STANDARD.

Referenced by performSearch(), and showSavedResults().

{
global $ilLocator, $ilCtrl, $lng;
// include js needed
include_once("./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
$this->tpl->addJavascript("./Services/Search/js/Search.js");
$this->tpl->addBlockFile('ADM_CONTENT','adm_content','tpl.search.html','Services/Search');
$this->tpl->setVariable("FORM_ACTION", $ilCtrl->getFormAction($this,'performSearch'));
$this->tpl->setVariable("TERM", ilUtil::prepareFormOutput($this->getString()));
$this->tpl->setVariable("TXT_SEARCH", $lng->txt("search"));
$this->tpl->setVariable("TXT_OPTIONS", $lng->txt("options"));
$this->tpl->setVariable("ARR_IMG", ilUtil::img(ilUtil::getImagePath("mm_down_arrow_dark.png")));
$this->tpl->setVariable("TXT_COMBINATION", $lng->txt("search_term_combination"));
$this->tpl->setVariable('TXT_COMBINATION_DEFAULT', ilSearchSettings::getInstance()->getDefaultOperator() == ilSearchSettings::OPERATOR_AND ? $lng->txt('search_all_words') : $lng->txt('search_any_word'));
if (ilSearchSettings::getInstance()->isLuceneItemFilterEnabled())
{
$this->tpl->setCurrentBlock("type_sel");
$this->tpl->setVariable('TXT_TYPE_DEFAULT',$lng->txt("search_fast_info"));
$this->tpl->setVariable("TXT_TYPE", $lng->txt("search_type"));
$this->tpl->setVariable("ARR_IMGT", ilUtil::img(ilUtil::getImagePath("mm_down_arrow_dark.png")));
$this->tpl->setVariable("FORM", $this->form->getHTML());
$this->tpl->parseCurrentBlock();
}
$this->tpl->setVariable("TXT_AREA", $lng->txt("search_area"));
// search area form
$this->tpl->setVariable('SEARCH_AREA_FORM', $this->getSearchAreaForm()->getHTML());
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilSearchGUI::storeRoot ( )
protected

Store new root node.

Definition at line 185 of file class.ilSearchGUI.php.

References ilSearchBaseGUI\getSearchAreaForm(), performSearch(), and ilSubItemListGUI\resetDetails().

{
$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';
$this->performSearch();
}

+ Here is the call graph for this function:

Field Documentation

ilSearchGUI::$combination

Definition at line 27 of file class.ilSearchGUI.php.

ilSearchGUI::$root_node

Definition at line 26 of file class.ilSearchGUI.php.

ilSearchGUI::$search_cache = null
protected

Definition at line 24 of file class.ilSearchGUI.php.

ilSearchGUI::$string

Definition at line 28 of file class.ilSearchGUI.php.

Referenced by getString().

ilSearchGUI::$type

Definition at line 29 of file class.ilSearchGUI.php.

Referenced by __construct(), and __performDetailsSearch().


The documentation for this class was generated from the following file: