33        $objDefinition = 
$DIC[
'objDefinition'];
 
   38        if (isset(
$_GET[
'ref_id'])) {
 
   39            $this->ref_id = (int) 
$_GET[
'ref_id'];
 
   44        $lng->loadLanguageModule(
"search");
 
   61        $ilCtrl = 
$DIC[
'ilCtrl'];
 
   66        if (!$this->isContainer) {
 
   69        if (
$_GET[
'baseClass'] == 
'ilSearchController') {
 
   73        include_once 
"Services/jQuery/classes/class.iljQueryUtil.php";
 
   76        $this->tpl = 
new ilTemplate(
'tpl.main_menu_search.html', 
true, 
true, 
'Services/Search');
 
   79            $this->tpl->setVariable(
'LABEL_SEARCH_OPTIONS', 
$lng->txt(
"label_search_options"));
 
   81                $this->tpl->setCurrentBlock(
"position");
 
   82                $this->tpl->setVariable(
'TXT_GLOBALLY', 
$lng->txt(
"search_globally"));
 
   84                $this->tpl->parseCurrentBlock();
 
   86                $this->tpl->setCurrentBlock(
"position_hid");
 
   88                $this->tpl->parseCurrentBlock();
 
   90            if ((
int) 
$_GET[
'ref_id']) {
 
   91                $this->tpl->setCurrentBlock(
'position_rep');
 
   92                $this->tpl->setVariable(
'TXT_CURRENT_POSITION', 
$lng->txt(
"search_at_current_position"));
 
   93                $this->tpl->setVariable(
'REF_ID', (
int) 
$_GET[
"ref_id"]);
 
   94                $this->tpl->parseCurrentBlock();
 
   99            $this->tpl->setCurrentBlock(
'usr_search');
 
  100            $this->tpl->setVariable(
'TXT_USR_SEARCH', $this->lng->txt(
'search_users'));
 
  102            $this->tpl->parseCurrentBlock();
 
  105        $this->tpl->setVariable(
'FORMACTION', 
'ilias.php?baseClass=ilSearchController&cmd=post' .
 
  106            '&rtoken=' . $ilCtrl->getRequestToken() . 
'&fallbackCmd=remoteSearch');
 
  107        $this->tpl->setVariable(
'BTN_SEARCH', $this->lng->txt(
'search'));
 
  108        $this->tpl->setVariable(
'SEARCH_INPUT_LABEL', $this->lng->txt(
'search_field'));
 
  109        $this->tpl->setVariable(
'AC_DATASOURCE', 
"ilias.php?baseClass=ilSearchController&cmd=autoComplete");
 
  113        $this->tpl->setVariable(
'IMG_MM_SEARCH', 
ilUtil::img(
 
  119            $this->tpl->setVariable(
'HREF_SEARCH_LINK', 
"ilias.php?baseClass=ilSearchController");
 
  120            $this->tpl->setVariable(
'TXT_SEARCH_LINK', 
$lng->txt(
"last_search_result"));
 
  124        $this->tpl->setVariable(
'TXT_SEARCH', 
$lng->txt(
"search"));
 
  125        include_once(
"./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
 
  130        $ov->setAutoHide(
false);
 
  133        return $this->tpl->get();
 
An exception for terminatinating execution or to throw for unit testing.
Add a search box to main menu.
__construct()
Constructor @access public.
static _lookupObjId($a_id)
static _lookupType($a_id, $a_reference=false)
lookup object type
This is a utility class for the yui overlays.
special template class to simplify handling of ITX/PEAR
static img($a_src, $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static initjQuery(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
static initjQueryUI($a_tpl=null)
inits and adds the jQuery-UI JS-File to the global template (see included_components....