19declare(strict_types=1);
51 ilSession::set(Param::MAX_PAGE->value, $max_page > 0 ? (
string) $max_page :
'1');
58 return $this->
http->wrapper()->query()->retrieve(
68 $sortation_string =
'';
69 if ($this->
http->wrapper()->query()->has(Param::SORTATION->value)) {
70 $sortation_string = $this->
http->wrapper()->query()->retrieve(
71 Param::SORTATION->value,
72 $this->
refinery->kindlyTo()->string()
75 return Sortation::tryFrom($sortation_string) ?? Sortation::RELEVANCE_DESC;
84 if ($this->
http->wrapper()->post()->has(
'term')) {
85 return $this->
http->wrapper()->post()->retrieve(
87 $this->
refinery->kindlyTo()->string()
105 if ($this->
http->wrapper()->post()->has(
'term')) {
106 return $this->
http->wrapper()->post()->retrieve(
108 $this->
refinery->kindlyTo()->string()
120 if ($this->
http->wrapper()->post()->has(
'root_id')) {
121 return $this->
http->wrapper()->post()->retrieve(
The scope of this class is split ilias-conform URI's into components.
fetchRequestedSearchTerm()
propably needs to be replaced with a completely different mechanism when switching to KS
loadFilterToCache(ilSearchFilterGUI $filter, ilUserSearchCache $cache)
fetchRequestedAutoCompleteSearchTerm()
propably needs to be replaced with a completely different mechanism when switching to KS
fetchRequestedRemoteSearchTerm()
propably needs to be replaced with a completely different mechanism when switching to KS
__construct(protected HTTP $http, protected Refinery $refinery)
updateMaxPage(int $max_page)
fetchRequestedRemoteScope()
propably needs to be replaced with a completely different mechanism when switching to KS
static get(string $a_var)
static clear(string $a_var)
static set(string $a_var, $a_val)
Set a value.
Class for storing search result.
static http()
Fetches the global http state from ILIAS.