19 declare(strict_types=1);
39 $this->
tabs = $DIC->tabs();
40 $this->
help = $DIC->help();
50 $next_class = $this->
ctrl->getNextClass($this);
51 $cmd = $this->
ctrl->getCmd();
54 switch ($next_class) {
55 case "ilpublicuserprofilegui":
58 if ($this->
http->wrapper()->query()->has(
'user_id')) {
65 $profile->setBackUrl($this->
ctrl->getLinkTarget($this,
'showSavedResults'));
66 $ret = $this->
ctrl->forwardCommand($profile);
67 $this->tpl->setContent($ret);
74 $cmd =
"showSavedResults";
83 parent::prepareOutput();
96 return self::SEARCH_DETAILS;
105 return $this->search_cache->getItemFilter();
115 if ($this->
http->wrapper()->post()->has(
'root_id')) {
116 $root_id = $this->
http->wrapper()->post()->retrieve(
122 if ($this->
http->wrapper()->post()->has(
'queryString')) {
123 $queryString = $this->
http->wrapper()->post()->retrieve(
125 $this->
refinery->kindlyTo()->string()
128 $this->search_cache->setRoot($root_id);
129 $this->search_cache->setQuery($queryString);
130 $this->search_cache->save();
136 if (strlen($this->search_cache->getQuery())) {
149 if (!$this->
form->checkInput()) {
150 $this->search_cache->deleteCachedEntries();
157 $this->search_cache->deleteCachedEntries();
183 $user_table->setLuceneResult($searcher->getResult());
184 $user_table->parseUserIds($searcher->getResult()->getCandidates());
186 $this->tpl->setVariable(
'SEARCH_RESULTS', $user_table->getHTML());
194 $this->
help->setScreenIdComponent(
"src_luc");
196 $this->
tabs->addTarget(
'search', $this->
ctrl->getLinkTargetByClass(
'illucenesearchgui'));
199 $this->
tabs->addTarget(
'search_user', $this->
ctrl->getLinkTargetByClass(
'illuceneusersearchgui'));
202 $this->
tabs->setTabActive(
'search_user');
214 $this->search_cache->setResultPageNumber($page_number);
217 if ($this->
http->wrapper()->post()->has(
'term')) {
218 $query = $this->
http->wrapper()->post()->retrieve(
220 $this->
refinery->kindlyTo()->string()
222 $this->search_cache->setQuery($query);
223 $this->search_cache->setItemFilter(array());
224 $this->search_cache->setMimeFilter(array());
225 $this->search_cache->save();
236 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lucene_usr_search.html',
'components/ILIAS/Search');
TableGUI class user search results.
performSearch()
Perform search.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
parse()
parse query string
search()
Search (button pressed)
static _getInstance(int $a_usr_id)
static getInstance(ilLuceneQueryParser $qp)
Get singleton instance.
handleCommand(string $a_cmd)
static resetDetails()
As long as static::resetDetails is not possible this method is final.
executeCommand()
Execute Command.
initUserSearchCache()
Init user search cache.
GUI class for public user profile presentation.
static http()
Fetches the global http state from ILIAS.
__construct()
Constructor.
renderSearch(string $term, int $root_node=0)
form( $class_path, string $cmd, string $submit_caption="")
remoteSearch()
Search from main menu.
initStandardSearchForm(int $a_mode)
__construct(Container $dic, ilPlugin $plugin)
const int LUCENE_USER_SEARCH
initPageNumberFromQuery()
static clear(string $a_var)
getType()
Get type of search (details | fast)
showSearchForm()
Show search form.
getDetails()
Needed for base class search form.