4 include_once
'Services/Search/classes/class.ilSearchSettings.php';
5 include_once
'./Services/PersonalDesktop/interfaces/interface.ilDesktopItemHandling.php';
6 include_once
'./Services/Administration/interfaces/interface.ilAdministrationCommandHandling.php';
52 $this->lng->loadLanguageModule(
'search');
54 $ilMainMenu->setActive(
'search');
60 global $ilLocator,
$lng;
62 $this->tpl->getStandardTemplate();
71 $this->tpl->setTitle($lng->txt(
"search"));
84 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
86 $this->form->setOpenTag(
false);
87 $this->form->setCloseTag(
false);
92 $this->form->addItem($radg);
96 if($a_mode == self::SEARCH_FORM_STANDARD)
107 $radg->addOption($op1);
112 $op2 =
new ilCheckboxInputGUI($this->lng->txt(
'search_filter_by_type'),
'item_filter_enabled');
119 $cbgr->setUseValuesAsKeys(
true);
120 $details = $this->getDetails();
129 $cbgr->addOption($cb);
131 if($a_mode == self::SEARCH_FORM_LUCENE)
135 $mimes = $this->getMimeDetails();
143 $cbgr->addOption($op3);
148 $cbgr->
setValue(array_merge((array) $details,(array) $mimes));
149 $op2->addSubItem($cbgr);
151 if($a_mode != self::SEARCH_FORM_STANDARD && $det)
153 $op2->setChecked(
true);
158 $radg->addOption($op2);
159 $this->form->addItem($radg);
163 $this->form->addItem($op2);
167 $this->form->setFormAction($ilCtrl->getFormAction($this,
'performSearch'));
177 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
179 $form->setOpenTag(
false);
180 $form->setCloseTag(
false);
185 $form->addItem($radg);
188 include_once(
"./Services/Form/classes/class.ilRepositorySelectorInputGUI.php");
192 $ti->readFromSession();
196 if (isset(
$_POST[
"root_id"]))
198 $ti->setValue(
$_POST[
"root_id"]);
199 $ti->writeToSession();
201 $form->setFormAction($ilCtrl->getFormAction($this,
'performSearch'));
213 if(method_exists($this, $a_cmd))
229 include_once
'./Services/PersonalDesktop/classes/class.ilDesktopItemGUI.php';
231 $this->showSavedResults();
239 include_once
'./Services/PersonalDesktop/classes/class.ilDesktopItemGUI.php';
241 $this->showSavedResults();
247 public function delete()
249 include_once
'./Services/Administration/classes/class.ilAdministrationCommandGUI.php';
259 $this->showSavedResults();
267 include_once
'./Services/Administration/classes/class.ilAdministrationCommandGUI.php';
269 $admin->performDelete();
279 include_once
'./Services/Administration/classes/class.ilAdministrationCommandGUI.php';
289 include_once
'./Services/Administration/classes/class.ilAdministrationCommandGUI.php';
296 include_once
'./Services/Administration/classes/class.ilAdministrationCommandGUI.php';
303 include_once
'./Services/Administration/classes/class.ilAdministrationCommandGUI.php';
305 $admin->showLinkIntoMultipleObjectsTree();
310 include_once
'./Services/Administration/classes/class.ilAdministrationCommandGUI.php';
312 $admin->showMoveIntoObjectTree();
317 include_once
'./Services/Administration/classes/class.ilAdministrationCommandGUI.php';
319 $admin->performPasteIntoMultipleObjects();
325 $this->ctrl->redirect($this);
331 $this->ctrl->redirect($this);
336 $_SESSION[
"il_cont_admin_panel"] =
false;
337 $this->ctrl->redirect($this);
346 $ilLocator->addItem($this->lng->txt(
'search'),$this->ctrl->getLinkTarget($this));
347 $this->tpl->setLocator();
361 $_SESSION[
"$a_session_key"] = max(
$_SESSION[
"$a_session_key"],$this->search_cache->getResultPageNumber());
369 if($this->search_cache->getResultPageNumber() > 1)
371 $this->ctrl->setParameter($this,
'page_number',$this->search_cache->getResultPageNumber() - 1);
377 $this->prev_link = $this->ctrl->getLinkTarget($this,
'performSearch');
379 for($i = 1;$i <=
$_SESSION[
"$a_session_key"];$i++)
381 if($i == $this->search_cache->getResultPageNumber())
390 $this->ctrl->setParameter($this,
'page_number',$i);
391 $link =
'<a href="'.$this->ctrl->getLinkTarget($this,
'performSearch').
'" /a>'.$i.
'</a> ';
401 $this->ctrl->setParameter($this,
'page_number',$this->search_cache->getResultPageNumber() + 1);
407 $this->next_link = $this->ctrl->getLinkTarget($this,
'performSearch');
415 $this->ctrl->clearParameters($this);
426 $path_arr = $tree->getPathFull($a_root_node,ROOT_FOLDER_ID);
428 foreach($path_arr as $data)
433 $path .= $data[
'title'];
437 $path .= $this->lng->txt(
'repository');
450 include_once(
"./Services/Search/classes/class.ilSearchAutoComplete.php");