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';
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());
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
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
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc