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());
201 $ilHelp->setScreenIdComponent(
"src_luc");
203 $this->tabs_gui->addTarget(
'search',$this->ctrl->getLinkTargetByClass(
'illucenesearchgui'));
207 $this->tabs_gui->addTarget(
'search_user',$this->ctrl->getLinkTargetByClass(
'illuceneusersearchgui'));
214 $fields->getActiveFields())
216 $this->tabs_gui->addTarget(
'search_advanced',$this->ctrl->getLinkTargetByClass(
'illuceneadvancedsearchgui'));
219 $this->tabs_gui->setTabActive(
'search_user');
232 include_once(
'Services/Search/classes/class.ilUserSearchCache.php');
235 if((
int)
$_GET[
'page_number'])
237 $this->search_cache->setResultPageNumber((
int) $_GET[
'page_number']);
242 $this->search_cache->setItemFilter(array());
243 $this->search_cache->setMimeFilter(array());
244 $this->search_cache->save();
258 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lucene_usr_search.html',
'Services/Search');
261 include_once(
"./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
263 $this->tpl->addJavascript(
"./Services/Search/js/Search.js");
265 $this->tpl->setVariable(
'FORM_ACTION',
$GLOBALS[
'ilCtrl']->getFormAction($this,
'performSearch'));
267 include_once(
"./Services/UIComponent/Button/classes/class.ilSubmitButton.php");
269 $btn->setCommand(
"performSearch");
270 $btn->setCaption(
"search");
271 $this->tpl->setVariable(
"SUBMIT_BTN",$btn->render());