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';
51 $this->lng->loadLanguageModule(
'search');
53 $ilMainMenu->setActive(
'search');
59 global $ilLocator,
$lng;
61 $this->tpl->getStandardTemplate();
70 $this->tpl->setTitle($lng->txt(
"search"));
83 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
85 $this->form->setOpenTag(
false);
86 $this->form->setCloseTag(
false);
91 $this->form->addItem($radg);
122 if($a_mode == self::SEARCH_FORM_STANDARD)
133 $radg->addOption($op1);
138 $op2 =
new ilCheckboxInputGUI($this->lng->txt(
'search_filter_by_type'),
'item_filter_enabled');
145 $cbgr->setUseValuesAsKeys(
true);
146 $details = $this->getDetails();
155 $cbgr->addOption($cb);
158 $op2->addSubItem($cbgr);
160 if($a_mode != self::SEARCH_FORM_STANDARD && $det)
162 $op2->setChecked(
true);
167 $radg->addOption($op2);
168 $this->form->addItem($radg);
172 $this->form->addItem($op2);
176 $this->form->setFormAction($ilCtrl->getFormAction($this,
'performSearch'));
186 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
188 $form->setOpenTag(
false);
189 $form->setCloseTag(
false);
194 $form->addItem($radg);
197 include_once(
"./Services/Form/classes/class.ilRepositorySelectorInputGUI.php");
201 $ti->readFromSession();
205 if (isset(
$_POST[
"root_id"]))
207 $ti->setValue(
$_POST[
"root_id"]);
208 $ti->writeToSession();
210 $form->setFormAction($ilCtrl->getFormAction($this,
'performSearch'));
218 if(method_exists($this, $a_cmd))
234 include_once
'./Services/PersonalDesktop/classes/class.ilDesktopItemGUI.php';
236 $this->showSavedResults();
244 include_once
'./Services/PersonalDesktop/classes/class.ilDesktopItemGUI.php';
246 $this->showSavedResults();
252 public function delete()
254 include_once
'./Services/Administration/classes/class.ilAdministrationCommandGUI.php';
264 $this->showSavedResults();
272 include_once
'./Services/Administration/classes/class.ilAdministrationCommandGUI.php';
274 $admin->performDelete();
284 include_once
'./Services/Administration/classes/class.ilAdministrationCommandGUI.php';
294 include_once
'./Services/Administration/classes/class.ilAdministrationCommandGUI.php';
301 include_once
'./Services/Administration/classes/class.ilAdministrationCommandGUI.php';
308 include_once
'./Services/Administration/classes/class.ilAdministrationCommandGUI.php';
310 $admin->showLinkIntoMultipleObjectsTree();
315 include_once
'./Services/Administration/classes/class.ilAdministrationCommandGUI.php';
317 $admin->showMoveIntoObjectTree();
322 include_once
'./Services/Administration/classes/class.ilAdministrationCommandGUI.php';
324 $admin->performPasteIntoMultipleObjects();
330 $this->ctrl->redirect($this);
336 $this->ctrl->redirect($this);
341 $_SESSION[
"il_cont_admin_panel"] =
false;
342 $this->ctrl->redirect($this);
351 $ilLocator->addItem($this->lng->txt(
'search'),$this->ctrl->getLinkTarget($this));
352 $this->tpl->setLocator();
366 $_SESSION[
"$a_session_key"] = max(
$_SESSION[
"$a_session_key"],$this->search_cache->getResultPageNumber());
374 if($this->search_cache->getResultPageNumber() > 1)
376 $this->ctrl->setParameter($this,
'page_number',$this->search_cache->getResultPageNumber() - 1);
382 $this->prev_link = $this->ctrl->getLinkTarget($this,
'performSearch');
384 for($i = 1;$i <=
$_SESSION[
"$a_session_key"];$i++)
386 if($i == $this->search_cache->getResultPageNumber())
395 $this->ctrl->setParameter($this,
'page_number',$i);
396 $link =
'<a href="'.$this->ctrl->getLinkTarget($this,
'performSearch').
'" /a>'.$i.
'</a> ';
406 $this->ctrl->setParameter($this,
'page_number',$this->search_cache->getResultPageNumber() + 1);
412 $this->next_link = $this->ctrl->getLinkTarget($this,
'performSearch');
420 $this->ctrl->clearParameters($this);
431 $path_arr = $tree->getPathFull($a_root_node,ROOT_FOLDER_ID);
433 foreach($path_arr as
$data)
438 $path .= $data[
'title'];
442 $path .= $this->lng->txt(
'repository');
455 include_once(
"./Services/Search/classes/class.ilSearchAutoComplete.php");