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';
34 parent::__construct();
48 $next_class = $this->ctrl->getNextClass($this);
49 $cmd = $this->ctrl->getCmd();
52 switch ($next_class) {
53 case "ilpublicuserprofilegui":
54 include_once(
'./Services/User/classes/class.ilPublicUserProfileGUI.php');
56 $profile->setBackUrl($this->ctrl->getLinkTarget($this,
'showSavedResults'));
65 $cmd =
"showSavedResults";
79 parent::prepareOutput();
93 if (count($this->search_cache)) {
106 return (array) $this->search_cache->getItemFilter();
116 $this->search_cache->setRoot((
int)
$_POST[
'root_id']);
118 $this->search_cache->save();
134 if (strlen($this->search_cache->getQuery())) {
147 if (!$this->form->checkInput()) {
148 $this->search_cache->deleteCachedEntries();
150 include_once
'./Services/Object/classes/class.ilSubItemListGUI.php';
157 $this->search_cache->deleteCachedEntries();
160 include_once
'./Services/Object/classes/class.ilSubItemListGUI.php';
171 include_once
'./Services/Search/classes/Lucene/class.ilLuceneSearcher.php';
172 include_once
'./Services/Search/classes/Lucene/class.ilLuceneQueryParser.php';
181 include_once
'./Services/Search/classes/class.ilRepositoryUserResultTableGUI.php';
188 $user_table->setLuceneResult($searcher->getResult());
189 $user_table->parseUserIds($searcher->getResult()->getCandidates());
191 $GLOBALS[
'DIC'][
'tpl']->setVariable(
'SEARCH_RESULTS', $user_table->getHTML());
203 $ilHelp = $DIC[
'ilHelp'];
205 $ilHelp->setScreenIdComponent(
"src_luc");
207 $this->tabs_gui->addTarget(
'search', $this->ctrl->getLinkTargetByClass(
'illucenesearchgui'));
210 $this->tabs_gui->addTarget(
'search_user', $this->ctrl->getLinkTargetByClass(
'illuceneusersearchgui'));
217 $fields->getActiveFields()) {
218 $this->tabs_gui->addTarget(
'search_advanced', $this->ctrl->getLinkTargetByClass(
'illuceneadvancedsearchgui'));
221 $this->tabs_gui->setTabActive(
'search_user');
236 include_once(
'Services/Search/classes/class.ilUserSearchCache.php');
239 if ((
int)
$_GET[
'page_number']) {
240 $this->search_cache->setResultPageNumber((
int) $_GET[
'page_number']);
242 if (isset(
$_POST[
'term'])) {
244 $this->search_cache->setItemFilter(array());
245 $this->search_cache->setMimeFilter(array());
246 $this->search_cache->save();
263 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lucene_usr_search.html',
'Services/Search');
266 include_once(
"./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
268 $this->tpl->addJavascript(
"./Services/Search/js/Search.js");
270 $this->tpl->setVariable(
'FORM_ACTION',
$GLOBALS[
'DIC'][
'ilCtrl']->getFormAction($this,
'performSearch'));
272 $this->tpl->setVariable(
"SEARCH_LABEL",
$lng->txt(
"search"));
273 include_once(
"./Services/UIComponent/Button/classes/class.ilSubmitButton.php");
275 $btn->setCommand(
"performSearch");
276 $btn->setCaption(
"search");
277 $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.
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
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.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
showSearchForm()
Show search form.
getDetails()
Needed for base class search form.
static initJavascript()
Init javascript.