3 declare(strict_types=1);
    51         $this->
lng = $DIC->language();
    52         $this->
lng->loadLanguageModule(
"search");
    53         $this->tree = $DIC->repositoryTree();
    54         $this->
ctrl = $DIC->ctrl();
    55         $this->
user = $DIC->user();
    57         $this->
http = $DIC->http();
    59         $DIC->ui()->mainTemplate()->addJavascript(
'Services/Search/js/SearchMainMenu.js');
    67         if ($this->
http->wrapper()->query()->has(
'ref_id')) {
    68             $this->ref_id = $this->
http->wrapper()->query()->retrieve(
    80         $this->tpl = 
new ilTemplate(
'tpl.main_menu_search.html', 
true, 
true, 
'Services/Search');
    82             $this->tpl->setVariable(
'LABEL_SEARCH_OPTIONS', $this->
lng->txt(
"label_search_options"));
    84                 $this->tpl->setCurrentBlock(
"position");
    85                 $this->tpl->setVariable(
'TXT_GLOBALLY', $this->
lng->txt(
"search_globally"));
    87                 $this->tpl->parseCurrentBlock();
    89                 $this->tpl->setCurrentBlock(
"position_hid");
    91                 $this->tpl->parseCurrentBlock();
    94                 $this->tpl->setCurrentBlock(
'position_rep');
    95                 $this->tpl->setVariable(
'TXT_CURRENT_POSITION', $this->
lng->txt(
"search_at_current_position"));
    96                 $this->tpl->setVariable(
'REF_ID', $this->ref_id);
    97                 $this->tpl->parseCurrentBlock();
   102             $this->tpl->setCurrentBlock(
'usr_search');
   103             $this->tpl->setVariable(
'TXT_USR_SEARCH', $this->
lng->txt(
'search_users'));
   105             $this->tpl->parseCurrentBlock();
   107         $this->tpl->setVariable(
   109             $this->
ctrl->getFormActionByClass(
   110                 ilSearchControllerGUI::class,
   114         $this->tpl->setVariable(
'BTN_SEARCH', $this->
lng->txt(
'search'));
   115         $this->tpl->setVariable(
'SEARCH_INPUT_LABEL', $this->
lng->txt(
'search_field'));
   116         $this->tpl->setVariable(
   118             $this->
ctrl->getLinkTargetByClass(
   119                 ilSearchControllerGUI::class,
   126         $this->tpl->setVariable(
'IMG_MM_SEARCH', 
ilUtil::img(
   128             $this->
lng->txt(
"search")
   132             $this->tpl->setVariable(
   134                 'ilias.php?baseClass=' . ilSearchControllerGUI::class
   136             $this->tpl->setVariable(
'TXT_SEARCH_LINK', $this->
lng->txt(
"last_search_result"));
   139         $this->tpl->setVariable(
'TXT_SEARCH', $this->
lng->txt(
"search"));
   144         $ov->setAutoHide(
false);
   147         return $this->tpl->get();
 
Interface GlobalHttpState. 
 
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory) 
 
static img(string $a_src, ?string $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag. 
 
static http()
Fetches the global http state from ILIAS. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static initjQueryUI(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery-UI JS-File to the global template (see included_components.txt for included components) 
 
static initjQuery(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template