19declare(strict_types=1);
36 protected LOMServices $lom_services,
45 if ($this->
http->wrapper()->post()->has(
'queryString')) {
46 return $this->
http->wrapper()->post()->retrieve(
48 $this->
refinery->kindlyTo()->string()
66 $search_filter_data = $filter->
getData();
70 $creation_filter = [];
72 $this->
settings->isDateFilterEnabled() &&
73 isset($search_filter_data[
'search_date'])
75 $creation_filter[
'date_start'] = $search_filter_data[
'search_date'][0];
76 $creation_filter[
'date_end'] = $search_filter_data[
'search_date'][1];
80 $types_from_filter = (array) ($search_filter_data[
'search_type'] ?? []);
82 foreach ($this->
settings->getEnabledLuceneItemFilterDefinitions() as $type =>
$data) {
83 if (in_array($type, $types_from_filter)) {
84 $enabled_types[$type] = 1;
89 $copyright_filter = [];
91 $this->lom_services->copyrightHelper()->isCopyrightSelectionActive() &&
92 isset($search_filter_data[
'search_copyright'])
94 $copyright_filter = $search_filter_data[
'search_copyright'];
The scope of this class is split ilias-conform URI's into components.
__construct(protected ilSearchSettings $settings, protected LOMServices $lom_services, HTTP $http, Refinery $refinery)
loadFilterToCache(ilSearchFilterGUI $filter, ilUserSearchCache $cache)
fetchRequestedRemoteSearchTerm()
propably needs to be replaced with a completely different mechanism when switching to KS
Class for storing search result.
setCreationFilter(array $a_filter)
setItemFilter(array $a_filter)
setRoot(int $a_root)
set root node of search
static _getInstance(int $a_usr_id)
setCopyrightFilter(string ... $copyright_identifiers)
static http()
Fetches the global http state from ILIAS.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc