4include_once
'./Services/Search/classes/class.ilSearchSettings.php';
5include_once
'./Services/Search/classes/class.ilSearchBaseGUI.php';
6include_once
'./Services/Search/classes/Lucene/class.ilLuceneAdvancedSearchFields.php';
32 parent::__construct();
43 $next_class = $this->ctrl->getNextClass($this);
44 $cmd = $this->ctrl->getCmd();
47 switch ($next_class) {
48 case "ilpublicuserprofilegui":
49 include_once(
'./Services/User/classes/class.ilPublicUserProfileGUI.php');
51 $profile->setBackUrl($this->ctrl->getLinkTarget($this,
'showSavedResults'));
60 $cmd =
"showSavedResults";
74 parent::prepareOutput();
88 if (count($this->search_cache)) {
101 return (array) $this->search_cache->getItemFilter();
111 $this->search_cache->setRoot((
int)
$_POST[
'root_id']);
113 $this->search_cache->save();
126 if (strlen($this->search_cache->getQuery())) {
139 if (!$this->form->checkInput()) {
140 $this->search_cache->deleteCachedEntries();
142 include_once
'./Services/Object/classes/class.ilSubItemListGUI.php';
149 $this->search_cache->deleteCachedEntries();
152 include_once
'./Services/Object/classes/class.ilSubItemListGUI.php';
163 include_once
'./Services/Search/classes/Lucene/class.ilLuceneSearcher.php';
164 include_once
'./Services/Search/classes/Lucene/class.ilLuceneQueryParser.php';
173 include_once
'./Services/Search/classes/class.ilRepositoryUserResultTableGUI.php';
180 $user_table->setLuceneResult($searcher->getResult());
181 $user_table->parseUserIds($searcher->getResult()->getCandidates());
183 $GLOBALS[
'tpl']->setVariable(
'SEARCH_RESULTS', $user_table->getHTML());
195 $ilHelp->setScreenIdComponent(
"src_luc");
197 $this->tabs_gui->addTarget(
'search', $this->ctrl->getLinkTargetByClass(
'illucenesearchgui'));
200 $this->tabs_gui->addTarget(
'search_user', $this->ctrl->getLinkTargetByClass(
'illuceneusersearchgui'));
207 $fields->getActiveFields()) {
208 $this->tabs_gui->addTarget(
'search_advanced', $this->ctrl->getLinkTargetByClass(
'illuceneadvancedsearchgui'));
211 $this->tabs_gui->setTabActive(
'search_user');
224 include_once(
'Services/Search/classes/class.ilUserSearchCache.php');
227 if ((
int)
$_GET[
'page_number']) {
228 $this->search_cache->setResultPageNumber((
int)
$_GET[
'page_number']);
230 if (isset(
$_POST[
'term'])) {
232 $this->search_cache->setItemFilter(array());
233 $this->search_cache->setMimeFilter(array());
234 $this->search_cache->save();
248 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lucene_usr_search.html',
'Services/Search');
251 include_once(
"./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
253 $this->tpl->addJavascript(
"./Services/Search/js/Search.js");
255 $this->tpl->setVariable(
'FORM_ACTION',
$GLOBALS[
'ilCtrl']->getFormAction($this,
'performSearch'));
257 include_once(
"./Services/UIComponent/Button/classes/class.ilSubmitButton.php");
259 $btn->setCommand(
"performSearch");
260 $btn->setCaption(
"search");
261 $this->tpl->setVariable(
"SUBMIT_BTN", $btn->render());
An exception for terminatinating execution or to throw for unit testing.
static getInstance()
Get singleton instance.
static getInstance(ilLuceneQueryParser $qp)
Get singleton instance.
@classDescription GUI for Lucene user search
initUserSearchCache()
Init user search cache.
showSearchForm()
Show search form.
getType()
Get type of search (details | fast)
showSavedResults()
Show saved results.
prepareOutput()
Add admin panel command.
__construct()
Constructor.
executeCommand()
Execute Command.
search()
Search (button pressed)
performSearch()
Perform search.
getDetails()
Needed for base class search form.
remoteSearch()
Search from main menu.
static initJavascript()
Init javascript.
GUI class for public user profile presentation.
TableGUI class user search results.
initStandardSearchForm($a_mode)
Init standard search form.
handleCommand($a_cmd)
Handle command.
static resetDetails()
reset details As long as static::resetDetails is not possible this method is final
static _getInstance($a_usr_id)
Get singleton instance.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public
$GLOBALS['loaded']
Global hash that tracks already loaded includes.