4 include_once
'./Services/Search/classes/class.ilSearchSettings.php';
5 include_once
'./Services/Search/classes/class.ilSearchBaseGUI.php';
6 include_once
'./Services/Search/classes/Lucene/class.ilLuceneAdvancedSearchFields.php';
44 $next_class = $this->ctrl->getNextClass($this);
45 $cmd = $this->ctrl->getCmd();
50 case "ilpublicuserprofilegui":
51 include_once(
'./Services/User/classes/class.ilPublicUserProfileGUI.php');
53 $profile->setBackUrl($this->ctrl->getLinkTarget($this,
'showSavedResults'));
54 $ret = $ilCtrl->forwardCommand($profile);
63 $cmd =
"showSavedResults";
91 if(count($this->search_cache))
105 return (array) $this->search_cache->getItemFilter();
115 $this->search_cache->setRoot((
int)
$_POST[
'root_id']);
117 $this->search_cache->save();
130 if(strlen($this->search_cache->getQuery()))
144 if(!$this->form->checkInput())
146 $this->search_cache->deleteCachedEntries();
148 include_once
'./Services/Object/classes/class.ilSubItemListGUI.php';
155 $this->search_cache->deleteCachedEntries();
158 include_once
'./Services/Object/classes/class.ilSubItemListGUI.php';
169 include_once
'./Services/Search/classes/Lucene/class.ilLuceneSearcher.php';
170 include_once
'./Services/Search/classes/Lucene/class.ilLuceneQueryParser.php';
179 include_once
'./Services/Search/classes/class.ilRepositoryUserResultTableGUI.php';
186 $user_table->setLuceneResult($searcher->getResult());
187 $user_table->parseUserIds($searcher->getResult()->getCandidates());
189 $GLOBALS[
'tpl']->setVariable(
'SEARCH_RESULTS',$user_table->getHTML());
199 $this->tabs_gui->addTarget(
'search',$this->ctrl->getLinkTargetByClass(
'illucenesearchgui'));
203 $this->tabs_gui->addTarget(
'search_user',$this->ctrl->getLinkTargetByClass(
'illuceneusersearchgui'));
210 $fields->getActiveFields())
212 $this->tabs_gui->addTarget(
'search_advanced',$this->ctrl->getLinkTargetByClass(
'illuceneadvancedsearchgui'));
215 $this->tabs_gui->setTabActive(
'search_user');
228 include_once(
'Services/Search/classes/class.ilUserSearchCache.php');
231 if((
int)
$_GET[
'page_number'])
233 $this->search_cache->setResultPageNumber((
int) $_GET[
'page_number']);
238 $this->search_cache->setItemFilter(array());
239 $this->search_cache->setMimeFilter(array());
240 $this->search_cache->save();
254 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lucene_usr_search.html',
'Services/Search');
257 include_once(
"./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
259 $this->tpl->addJavascript(
"./Services/Search/js/Search.js");
261 $this->tpl->setVariable(
'FORM_ACTION',
$GLOBALS[
'ilCtrl']->getFormAction($this,
'performSearch'));
263 $this->tpl->setVariable(
"TXT_SEARCH", $lng->txt(
"search"));