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';
32 parent::__construct();
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";
77 parent::prepareOutput();
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());
prepareOutput()
Add admin panel command.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
TableGUI class user search results.
performSearch()
Perform search.
parse()
parse query string
search()
Search (button pressed)
static getInstance(ilLuceneQueryParser $qp)
Get singleton instance.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static resetDetails()
reset details As long as static::resetDetails is not possible this method is final ...
executeCommand()
Execute Command.
initUserSearchCache()
Init user search cache.
static _getInstance($a_usr_id)
Get singleton instance.
GUI class for public user profile presentation.
initStandardSearchForm($a_mode)
Init standard search form.
handleCommand($a_cmd)
Handle command.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
Create styles array
The data for the language used.
GUI for Lucene user search
__construct()
Constructor.
remoteSearch()
Search from main menu.
static getInstance()
Get singleton instance.
getType()
Get type of search (details | fast)
showSavedResults()
Show saved results.
showSearchForm()
Show search form.
getDetails()
Needed for base class search form.
static initJavascript()
Init javascript.