19declare(strict_types=1);
41 $this->
tabs = $DIC->tabs();
42 $this->
help = $DIC->help();
52 $next_class = $this->
ctrl->getNextClass($this);
53 $cmd = $this->
ctrl->getCmd();
56 switch ($next_class) {
57 case strtolower(PublicProfileGUI::class):
60 if ($this->
http->wrapper()->query()->has(
'user_id')) {
67 $profile->setBackUrl($this->
ctrl->getLinkTarget($this,
'showSavedResults'));
68 $ret = $this->
ctrl->forwardCommand($profile);
69 $this->tpl->setContent($ret);
76 $cmd =
"showSavedResults";
85 parent::prepareOutput();
107 return $this->search_cache->getItemFilter();
117 if ($this->
http->wrapper()->post()->has(
'root_id')) {
118 $root_id = $this->
http->wrapper()->post()->retrieve(
124 if ($this->
http->wrapper()->post()->has(
'queryString')) {
125 $queryString = $this->
http->wrapper()->post()->retrieve(
127 $this->
refinery->kindlyTo()->string()
130 $this->search_cache->setRoot($root_id);
131 $this->search_cache->setQuery($queryString);
132 $this->search_cache->save();
138 if (strlen($this->search_cache->getQuery())) {
151 if (!$this->
form->checkInput()) {
152 $this->search_cache->deleteCachedEntries();
159 $this->search_cache->deleteCachedEntries();
185 $user_table->setLuceneResult($searcher->getResult());
186 $user_table->parseUserIds($searcher->getResult()->getCandidates());
188 $this->tpl->setVariable(
'SEARCH_RESULTS', $user_table->getHTML());
196 $this->
help->setScreenIdComponent(
"src_luc");
198 $this->
tabs->addTarget(
'search', $this->
ctrl->getLinkTargetByClass(
'illucenesearchgui'));
201 $this->
tabs->addTarget(
'search_user', $this->
ctrl->getLinkTargetByClass(
'illuceneusersearchgui'));
204 $this->
tabs->setTabActive(
'search_user');
216 $this->search_cache->setResultPageNumber($page_number);
219 if ($this->
http->wrapper()->post()->has(
'term')) {
220 $query = $this->
http->wrapper()->post()->retrieve(
222 $this->
refinery->kindlyTo()->string()
224 $this->search_cache->setQuery($query);
225 $this->search_cache->setItemFilter(array());
226 $this->search_cache->setMimeFilter(array());
227 $this->search_cache->save();
238 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lucene_usr_search.html',
'components/ILIAS/Search');
GUI class for public user profile presentation.
static getInstance(ilLuceneQueryParser $qp)
Get singleton instance.
initUserSearchCache()
Init user search cache.
showSearchForm()
Show search form.
getType()
Get type of search (details | fast)
__construct()
Constructor.
executeCommand()
Execute Command.
search()
Search (button pressed)
performSearch()
Perform search.
getDetails()
Needed for base class search form.
remoteSearch()
Search from main menu.
TableGUI class user search results.
renderSearch(string $term, int $root_node=0)
initStandardSearchForm(int $a_mode)
handleCommand(string $a_cmd)
initPageNumberFromQuery()
static clear(string $a_var)
static resetDetails()
As long as static::resetDetails is not possible this method is final.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getInstance(int $a_usr_id)
const int LUCENE_USER_SEARCH
static http()
Fetches the global http state from ILIAS.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
form( $class_path, string $cmd, string $submit_caption="")