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();
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'));
52 $ret = $ilCtrl->forwardCommand($profile);
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());
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.