ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSearchBaseGUI Class Reference
+ Inheritance diagram for ilSearchBaseGUI:
+ Collaboration diagram for ilSearchBaseGUI:

Public Member Functions

 __construct ()
 
 prepareOutput ()
 
 initStandardSearchForm (int $a_mode)
 
 getSearchAreaForm ()
 
 handleCommand (string $a_cmd)
 
 addToDeskObject ()
 Add desktop item public. More...
 
 removeFromDeskObject ()
 Remove from desktop public. More...
 
 delete ()
 Show delete confirmation. More...
 
 cancelDelete ()
 Cancel delete. More...
 
 cancelObject ()
 
 cancelMoveLinkObject ()
 
 performDelete ()
 
 cut ()
 
 link ()
 
 paste ()
 
 showLinkIntoMultipleObjectsTree ()
 
 showPasteTree ()
 
 showMoveIntoObjectTree ()
 
 performPasteIntoMultipleObjects ()
 
 clear ()
 clear clipboard More...
 
 enableAdministrationPanel ()
 
 disableAdministrationPanel ()
 
 keepObjectsInClipboardObject ()
 
 addLocator ()
 
 autoComplete ()
 
- Public Member Functions inherited from ILIAS\Object\ImplementsCreationCallback
 callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb)
 

Data Fields

const SEARCH_FAST = 1
 
const SEARCH_DETAILS = 2
 
const SEARCH_AND = 'and'
 
const SEARCH_OR = 'or'
 
const SEARCH_FORM_LUCENE = 1
 
const SEARCH_FORM_STANDARD = 2
 
const SEARCH_FORM_USER = 3
 

Protected Member Functions

 initPageNumberFromQuery ()
 
 addPager ($result, string $a_session_key)
 
 buildSearchAreaPath (int $a_root_node)
 
 getCreationDateForm ()
 
 getSearchCache ()
 
 loadCreationFilter ()
 

Protected Attributes

ilUserSearchCache $search_cache
 
string $search_mode = ''
 
ilSearchSettings $settings
 
ilPropertyFormGUI $form = null
 
ClipboardManager $clipboard
 
ViewManager $container_view_manager
 
ilFavouritesManager $favourites
 
ilCtrl $ctrl
 
ILIAS $ilias
 
ilLanguage $lng
 
ilGlobalTemplateInterface $tpl
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilTree $tree
 
GlobalHttpState $http
 
Factory $refinery
 
ilLogger $logger
 
string $prev_link = ''
 
string $next_link = ''
 

Detailed Description

Definition at line 41 of file class.ilSearchBaseGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilSearchBaseGUI::__construct ( )

Definition at line 79 of file class.ilSearchBaseGUI.php.

References $DIC, ilUserSearchCache\_getInstance(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\locator(), ILIAS\Repository\logger(), ILIAS\Repository\refinery(), ILIAS\Repository\settings(), and ILIAS\Repository\user().

80  {
81  global $DIC;
82 
83 
84  $this->logger = $DIC->logger()->src();
85  $this->ilias = $DIC['ilias'];
86  $this->locator = $DIC['ilLocator'];
87  $this->ctrl = $DIC->ctrl();
88  $this->lng = $DIC->language();
89  $this->tpl = $DIC->ui()->mainTemplate();
90  $this->tree = $DIC->repositoryTree();
91 
92  $this->lng->loadLanguageModule('search');
93  $this->settings = new ilSearchSettings();
94  $this->favourites = new ilFavouritesManager();
95  $this->user = $DIC->user();
96  $this->clipboard = $DIC
97  ->repository()
98  ->internal()
99  ->domain()
100  ->clipboard();
101  $this->container_view_manager = $DIC
102  ->container()
103  ->internal()
104  ->domain()
105  ->content()
106  ->view();
107  $this->search_cache = ilUserSearchCache::_getInstance($this->user->getId());
108  $this->http = $DIC->http();
109  $this->refinery = $DIC->refinery();
110  }
static _getInstance(int $a_usr_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
static http()
Fetches the global http state from ILIAS.
header include for all ilias files.
+ Here is the call graph for this function:

Member Function Documentation

◆ addLocator()

ilSearchBaseGUI::addLocator ( )

Definition at line 380 of file class.ilSearchBaseGUI.php.

References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\locator().

380  : void
381  {
382  $this->locator->addItem($this->lng->txt('search'), $this->ctrl->getLinkTarget($this));
383  $this->tpl->setLocator();
384  }
+ Here is the call graph for this function:

◆ addPager()

ilSearchBaseGUI::addPager (   $result,
string  $a_session_key 
)
protected
Todo:
check wether result is ilSearchResult or ilLuceneSearchResult and add interface or base class.

Definition at line 389 of file class.ilSearchBaseGUI.php.

References $i, ILIAS\Repository\ctrl(), ilSession\get(), and ilSession\set().

Referenced by ilAdvancedSearchGUI\performAdvMDSearch(), ilAdvancedSearchGUI\performSearch(), ilLuceneAdvancedSearchGUI\performSearch(), ilLuceneSearchGUI\performSearch(), ilSearchGUI\performSearch(), ilAdvancedSearchGUI\showSavedAdvMDResults(), ilLuceneAdvancedSearchGUI\showSavedResults(), ilLuceneSearchGUI\showSavedResults(), ilSearchGUI\showSavedResults(), and ilAdvancedSearchGUI\showSavedResults().

389  : bool
390  {
391  $max_page = max(ilSession::get($a_session_key), $this->search_cache->getResultPageNumber());
392  ilSession::set($a_session_key, $max_page);
393 
394  if ($max_page == 1 and
395  (count($result->getResults()) < $result->getMaxHits())) {
396  return true;
397  }
398 
399  if ($this->search_cache->getResultPageNumber() > 1) {
400  $this->ctrl->setParameter($this, 'page_number', $this->search_cache->getResultPageNumber() - 1);
401  $this->prev_link = $this->ctrl->getLinkTarget($this, 'performSearch');
402  }
403  for ($i = 1;$i <= $max_page;$i++) {
404  if ($i == $this->search_cache->getResultPageNumber()) {
405  continue;
406  }
407 
408  $this->ctrl->setParameter($this, 'page_number', $i);
409  $link = '<a href="' . $this->ctrl->getLinkTarget($this, 'performSearch') . '" /a>' . $i . '</a> ';
410  }
411  if (count($result->getResults()) >= $result->getMaxHits()) {
412  $this->ctrl->setParameter($this, 'page_number', $this->search_cache->getResultPageNumber() + 1);
413  $this->next_link = $this->ctrl->getLinkTarget($this, 'performSearch');
414  }
415  $this->ctrl->clearParameters($this);
416  return false;
417  }
static get(string $a_var)
static set(string $a_var, $a_val)
Set a value.
$i
Definition: metadata.php:41
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addToDeskObject()

ilSearchBaseGUI::addToDeskObject ( )

Add desktop item public.

Implements ilDesktopItemHandling.

Definition at line 254 of file class.ilSearchBaseGUI.php.

References ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), and ILIAS\Repository\user().

254  : void
255  {
256  if ($this->http->wrapper()->query()->has('item_ref_id')) {
257  $this->favourites->add(
258  $this->user->getId(),
259  $this->http->wrapper()->query()->retrieve(
260  'item_ref_id',
261  $this->refinery->kindlyTo()->int()
262  )
263  );
264  }
265  $this->showSavedResults();
266  }
static http()
Fetches the global http state from ILIAS.
+ Here is the call graph for this function:

◆ autoComplete()

ilSearchBaseGUI::autoComplete ( )

Definition at line 435 of file class.ilSearchBaseGUI.php.

References $query, exit, ilSearchAutoComplete\getList(), ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().

435  : void
436  {
437  $query = '';
438  if ($this->http->wrapper()->post()->has('term')) {
439  $query = $this->http->wrapper()->post()->retrieve(
440  'term',
441  $this->refinery->kindlyTo()->string()
442  );
443  }
445  echo $list;
446  exit;
447  }
exit
Definition: login.php:28
static getList(string $a_str)
static http()
Fetches the global http state from ILIAS.
$query
+ Here is the call graph for this function:

◆ buildSearchAreaPath()

ilSearchBaseGUI::buildSearchAreaPath ( int  $a_root_node)
protected

Definition at line 419 of file class.ilSearchBaseGUI.php.

References $data, $path, ILIAS\Repository\lng(), and ROOT_FOLDER_ID.

419  : string
420  {
421  $path_arr = $this->tree->getPathFull($a_root_node, ROOT_FOLDER_ID);
422  $counter = 0;
423  $path = '';
424  foreach ($path_arr as $data) {
425  if ($counter++) {
426  $path .= " > ";
427  $path .= $data['title'];
428  } else {
429  $path .= $this->lng->txt('repository');
430  }
431  }
432  return $path;
433  }
const ROOT_FOLDER_ID
Definition: constants.php:32
$path
Definition: ltiservices.php:32
+ Here is the call graph for this function:

◆ cancelDelete()

ilSearchBaseGUI::cancelDelete ( )

Cancel delete.

Implements ilAdministrationCommandHandling.

Definition at line 288 of file class.ilSearchBaseGUI.php.

288  : void
289  {
290  $this->showSavedResults();
291  }

◆ cancelMoveLinkObject()

ilSearchBaseGUI::cancelMoveLinkObject ( )

Implements ilAdministrationCommandHandling.

Definition at line 298 of file class.ilSearchBaseGUI.php.

298  : void
299  {
300  $this->showSavedResults();
301  }

◆ cancelObject()

ilSearchBaseGUI::cancelObject ( )

Definition at line 293 of file class.ilSearchBaseGUI.php.

293  : void
294  {
295  $this->showSavedResults();
296  }

◆ clear()

ilSearchBaseGUI::clear ( )

clear clipboard

Implements ilAdministrationCommandHandling.

Definition at line 353 of file class.ilSearchBaseGUI.php.

References ILIAS\Repository\ctrl().

353  : void
354  {
355  $this->clipboard->clear();
356  $this->ctrl->redirect($this);
357  }
+ Here is the call graph for this function:

◆ cut()

ilSearchBaseGUI::cut ( )

Implements ilAdministrationCommandHandling.

Definition at line 309 of file class.ilSearchBaseGUI.php.

309  : void
310  {
311  $admin = new ilAdministrationCommandGUI($this);
312  $admin->cut();
313  }
Handles Administration commands (cut, delete paste)

◆ delete()

ilSearchBaseGUI::delete ( )

Show delete confirmation.

Implements ilAdministrationCommandHandling.

Definition at line 282 of file class.ilSearchBaseGUI.php.

282  : void
283  {
284  $admin = new ilAdministrationCommandGUI($this);
285  $admin->delete();
286  }
Handles Administration commands (cut, delete paste)

◆ disableAdministrationPanel()

ilSearchBaseGUI::disableAdministrationPanel ( )

Implements ilAdministrationCommandHandling.

Definition at line 365 of file class.ilSearchBaseGUI.php.

References ILIAS\Repository\ctrl().

365  : void
366  {
367  $this->container_view_manager->setContentView();
368  $this->ctrl->redirect($this);
369  }
+ Here is the call graph for this function:

◆ enableAdministrationPanel()

ilSearchBaseGUI::enableAdministrationPanel ( )

Implements ilAdministrationCommandHandling.

Definition at line 359 of file class.ilSearchBaseGUI.php.

References ILIAS\Repository\ctrl().

359  : void
360  {
361  $this->container_view_manager->setAdminView();
362  $this->ctrl->redirect($this);
363  }
+ Here is the call graph for this function:

◆ getCreationDateForm()

ilSearchBaseGUI::getCreationDateForm ( )
protected

Definition at line 449 of file class.ilSearchBaseGUI.php.

References ILIAS\LTI\ToolProvider\$enabled, $form, ilPropertyFormGUI\addItem(), ILIAS\Repository\ctrl(), IL_CAL_UNIX, ILIAS\Repository\lng(), ilFormGUI\setCloseTag(), ilFormGUI\setFormAction(), and ilFormGUI\setOpenTag().

Referenced by loadCreationFilter(), ilSearchGUI\showSearch(), and ilLuceneSearchGUI\showSearchForm().

450  {
451  $options = $this->search_cache->getCreationFilter();
452 
453  $form = new ilPropertyFormGUI();
454  $form->setOpenTag(false);
455  $form->setCloseTag(false);
456 
457  $enabled = new ilCheckboxInputGUI($this->lng->txt('search_filter_cd'), 'screation');
458  $enabled->setValue('1');
459  $enabled->setChecked((bool) ($options['enabled'] ?? false));
461 
462 
463  $limit_sel = new ilSelectInputGUI('', 'screation_ontype');
464  $limit_sel->setValue($options['ontype'] ?? '');
465  $limit_sel->setOptions(
466  array(
467  1 => $this->lng->txt('search_created_after'),
468  2 => $this->lng->txt('search_created_before'),
469  3 => $this->lng->txt('search_created_on')
470  )
471  );
472  $enabled->addSubItem($limit_sel);
473 
474 
475  if ($options['date'] ?? false) {
476  $now = new ilDate($options['date'] ?? 0, IL_CAL_UNIX);
477  } else {
478  $now = new ilDate(time(), IL_CAL_UNIX);
479  }
480  $ds = new ilDateTimeInputGUI('', 'screation_date');
481  $ds->setRequired(true);
482  $ds->setDate($now);
483  $enabled->addSubItem($ds);
484 
485  $form->setFormAction($this->ctrl->getFormAction($this, 'performSearch'));
486 
487  return $form;
488  }
bool $enabled
Whether the system instance is enabled to accept connection requests.
Definition: System.php:123
ilPropertyFormGUI $form
setCloseTag(bool $a_val)
This class represents a checkbox property in a property form.
const IL_CAL_UNIX
setOpenTag(bool $a_open)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setFormAction(string $a_formaction)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSearchAreaForm()

ilSearchBaseGUI::getSearchAreaForm ( )

Definition at line 210 of file class.ilSearchBaseGUI.php.

References $form, ilPropertyFormGUI\addItem(), ILIAS\Repository\ctrl(), ilSearchSettings\getInstance(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ilFormGUI\setCloseTag(), ilFormGUI\setFormAction(), ilFormGUI\setOpenTag(), and ilRepositorySelectorInputGUI\setSelectText().

Referenced by ilLuceneSearchGUI\executeCommand(), ilSearchGUI\executeCommand(), ilSearchGUI\showSearch(), ilLuceneSearchGUI\showSearchForm(), ilSearchGUI\storeRoot(), and ilLuceneSearchGUI\storeRoot().

211  {
212  $form = new ilPropertyFormGUI();
213  $form->setOpenTag(false);
214  $form->setCloseTag(false);
215 
216  // term combination
217  $radg = new ilHiddenInputGUI('search_term_combination');
218  $radg->setValue((string) ilSearchSettings::getInstance()->getDefaultOperator());
219  $form->addItem($radg);
220 
221  // search area
222  $ti = new ilRepositorySelectorInputGUI($this->lng->txt("search_area"), "area");
223  $ti->setSelectText($this->lng->txt("search_select_search_area"));
224  $form->addItem($ti);
225  $ti->readFromSession();
226 
227  // alex, 15.8.2012: Added the following lines to get the value
228  // from the main menu top right input search form
229  if ($this->http->wrapper()->post()->has('root_id')) {
230  $ti->setValue(
231  $this->http->wrapper()->post()->retrieve(
232  'root_id',
233  $this->refinery->kindlyTo()->string()
234  )
235  );
236  $ti->writeToSession();
237  }
238  $form->setFormAction($this->ctrl->getFormAction($this, 'performSearch'));
239 
240  return $form;
241  }
ilPropertyFormGUI $form
setCloseTag(bool $a_val)
setOpenTag(bool $a_open)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static http()
Fetches the global http state from ILIAS.
setFormAction(string $a_formaction)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSearchCache()

ilSearchBaseGUI::getSearchCache ( )
protected

Definition at line 490 of file class.ilSearchBaseGUI.php.

References $search_cache.

Referenced by ilSearchGUI\__construct(), ilSearchGUI\parseDateFromCreationFilter(), and ilSearchGUI\parseOperatorFromCreationFilter().

491  {
492  return $this->search_cache;
493  }
ilUserSearchCache $search_cache
Class for storing search result.
+ Here is the caller graph for this function:

◆ handleCommand()

ilSearchBaseGUI::handleCommand ( string  $a_cmd)

Definition at line 244 of file class.ilSearchBaseGUI.php.

Referenced by ilLuceneUserSearchGUI\executeCommand(), ilLuceneAdvancedSearchGUI\executeCommand(), ilLuceneSearchGUI\executeCommand(), ilAdvancedSearchGUI\executeCommand(), and ilSearchGUI\executeCommand().

244  : void
245  {
246  if (method_exists($this, $a_cmd)) {
247  $this->$a_cmd();
248  } else {
249  $a_cmd .= 'Object';
250  $this->$a_cmd();
251  }
252  }
+ Here is the caller graph for this function:

◆ initPageNumberFromQuery()

ilSearchBaseGUI::initPageNumberFromQuery ( )
protected

Definition at line 112 of file class.ilSearchBaseGUI.php.

References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().

Referenced by ilLuceneUserSearchGUI\initUserSearchCache(), ilLuceneAdvancedSearchGUI\initUserSearchCache(), ilLuceneSearchGUI\initUserSearchCache(), ilAdvancedSearchGUI\initUserSearchCache(), ilAdvancedSearchGUI\performAdvMDSearch(), ilAdvancedSearchGUI\performSearch(), and ilSearchGUI\performSearch().

112  : int
113  {
114  if ($this->http->wrapper()->query()->has('page_number')) {
115  return $this->http->wrapper()->query()->retrieve(
116  'page_number',
117  $this->refinery->kindlyTo()->int()
118  );
119  }
120  return 0;
121  }
static http()
Fetches the global http state from ILIAS.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initStandardSearchForm()

ilSearchBaseGUI::initStandardSearchForm ( int  $a_mode)

Definition at line 135 of file class.ilSearchBaseGUI.php.

References $data, ILIAS\LTI\ToolProvider\$details, $form, $type, ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ilSearchSettings\getInstance(), ILIAS\Repository\lng(), SEARCH_DETAILS, SEARCH_FAST, SEARCH_FORM_STANDARD, ilCheckboxInputGUI\setValue(), ilRadioGroupInputGUI\setValue(), and ilRadioOption\setValue().

Referenced by ilSearchGUI\__construct(), ilLuceneUserSearchGUI\executeCommand(), ilLuceneSearchGUI\executeCommand(), and ilSearchGUI\showSearch().

136  {
137  $this->form = new ilPropertyFormGUI();
138  $this->form->setOpenTag(false);
139  $this->form->setCloseTag(false);
140 
141  // term combination
142  $radg = new ilHiddenInputGUI('search_term_combination');
143  $radg->setValue((string) ilSearchSettings::getInstance()->getDefaultOperator());
144  $this->form->addItem($radg);
145 
146  if (ilSearchSettings::getInstance()->isLuceneItemFilterEnabled()) {
147  if ($a_mode == self::SEARCH_FORM_STANDARD) {
148  // search type
149  $radg = new ilRadioGroupInputGUI($this->lng->txt("search_type"), "type");
150  $radg->setValue(
151  $this->getType() ==
155  );
156  $op1 = new ilRadioOption($this->lng->txt("search_fast_info"), (string) ilSearchBaseGUI::SEARCH_FAST);
157  $radg->addOption($op1);
158  $op2 = new ilRadioOption($this->lng->txt("search_details_info"), (string) ilSearchBaseGUI::SEARCH_DETAILS);
159  } else {
160  $op2 = new ilCheckboxInputGUI($this->lng->txt('search_filter_by_type'), 'item_filter_enabled');
161  $op2->setValue('1');
162  }
163 
164 
165  $cbgr = new ilCheckboxGroupInputGUI('', 'filter_type');
166  $cbgr->setUseValuesAsKeys(true);
167  $details = $this->getDetails();
168  $det = false;
169  foreach (ilSearchSettings::getInstance()->getEnabledLuceneItemFilterDefinitions() as $type => $data) {
170  $cb = new ilCheckboxOption($this->lng->txt($data['trans']), $type);
171  if (isset($details[$type])) {
172  $det = true;
173  }
174  $cbgr->addOption($cb);
175  }
176  $mimes = [];
177  if ($a_mode == self::SEARCH_FORM_LUCENE) {
178  if (ilSearchSettings::getInstance()->isLuceneMimeFilterEnabled()) {
179  $mimes = $this->getMimeDetails();
180  foreach (ilSearchSettings::getInstance()->getEnabledLuceneMimeFilterDefinitions() as $type => $data) {
181  $op3 = new ilCheckboxOption($this->lng->txt($data['trans']), $type);
182  if (isset($mimes[$type])) {
183  $det = true;
184  }
185  $cbgr->addOption($op3);
186  }
187  }
188  }
189 
190  $cbgr->setValue(array_merge((array) $details, (array) $mimes));
191  $op2->addSubItem($cbgr);
192 
193  if ($a_mode != self::SEARCH_FORM_STANDARD && $det) {
194  $op2->setChecked(true);
195  }
196 
197  if ($a_mode == ilSearchBaseGUI::SEARCH_FORM_STANDARD) {
198  $radg->addOption($op2);
199  $this->form->addItem($radg);
200  } else {
201  $this->form->addItem($op2);
202  }
203  }
204 
205  $this->form->setFormAction($this->ctrl->getFormAction($this, 'performSearch'));
206  return $this->form;
207  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$type
ilPropertyFormGUI $form
This class represents a checkbox property in a property form.
array $details
Details for error message relating to last request processed.
Definition: System.php:109
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This class represents a property in a property form.
setValue(string $a_value)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
form( $class_path, string $cmd)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ keepObjectsInClipboardObject()

ilSearchBaseGUI::keepObjectsInClipboardObject ( )

Implements ilAdministrationCommandHandling.

Definition at line 374 of file class.ilSearchBaseGUI.php.

References ILIAS\Repository\ctrl().

374  : void
375  {
376  $this->ctrl->redirect($this);
377  }
+ Here is the call graph for this function:

◆ link()

ilSearchBaseGUI::link ( )

Definition at line 316 of file class.ilSearchBaseGUI.php.

316  : void
317  {
318  $admin = new ilAdministrationCommandGUI($this);
319  $admin->link();
320  }
Handles Administration commands (cut, delete paste)

◆ loadCreationFilter()

ilSearchBaseGUI::loadCreationFilter ( )
protected
Returns
array<{enabled: bool, type: string, ontype: int, date: ilDate, duration: int}>

Definition at line 498 of file class.ilSearchBaseGUI.php.

References ilPropertyFormGUI\checkInput(), getCreationDateForm(), ilPropertyFormGUI\getInput(), ilPropertyFormGUI\getItemByPostVar(), IL_CAL_UNIX, and ILIAS\Repository\settings().

Referenced by ilSearchGUI\__construct(), and ilLuceneSearchGUI\initUserSearchCache().

498  : array
499  {
500  if (!$this->settings->isDateFilterEnabled()) {
501  return array();
502  }
503 
504 
505  $form = $this->getCreationDateForm();
506  $options = array();
507  if ($form->checkInput()) {
508  $options['enabled'] = $form->getInput('screation');
509  $options['type'] = $form->getInput('screation_type');
510  $options['ontype'] = $form->getInput('screation_ontype');
511  $options['date'] = $form->getItemByPostVar('screation_date')->getDate()->get(IL_CAL_UNIX);
512  $options['duration'] = $form->getInput('screation_duration');
513  }
514  return $options;
515  }
getItemByPostVar(string $a_post_var)
ilPropertyFormGUI $form
const IL_CAL_UNIX
getInput(string $a_post_var, bool $ensureValidation=true)
Returns the input of an item, if item provides getInput method and as fallback the value of the HTTP-...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ paste()

ilSearchBaseGUI::paste ( )

Implements ilAdministrationCommandHandling.

Definition at line 322 of file class.ilSearchBaseGUI.php.

322  : void
323  {
324  $admin = new ilAdministrationCommandGUI($this);
325  $admin->paste();
326  }
Handles Administration commands (cut, delete paste)

◆ performDelete()

ilSearchBaseGUI::performDelete ( )

Implements ilAdministrationCommandHandling.

Definition at line 303 of file class.ilSearchBaseGUI.php.

303  : void
304  {
305  $admin = new ilAdministrationCommandGUI($this);
306  $admin->performDelete();
307  }
Handles Administration commands (cut, delete paste)

◆ performPasteIntoMultipleObjects()

ilSearchBaseGUI::performPasteIntoMultipleObjects ( )

Implements ilAdministrationCommandHandling.

Definition at line 347 of file class.ilSearchBaseGUI.php.

347  : void
348  {
349  $admin = new ilAdministrationCommandGUI($this);
350  $admin->performPasteIntoMultipleObjects();
351  }
Handles Administration commands (cut, delete paste)

◆ prepareOutput()

ilSearchBaseGUI::prepareOutput ( )

Definition at line 124 of file class.ilSearchBaseGUI.php.

References ilObject\_getIcon(), and ILIAS\Repository\lng().

124  : void
125  {
126  $this->tpl->loadStandardTemplate();
127 
128  $this->tpl->setTitleIcon(
129  ilObject::_getIcon(0, "big", "src"),
130  ""
131  );
132  $this->tpl->setTitle($this->lng->txt("search"));
133  }
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.
+ Here is the call graph for this function:

◆ removeFromDeskObject()

ilSearchBaseGUI::removeFromDeskObject ( )

Remove from desktop public.

Implements ilDesktopItemHandling.

Definition at line 268 of file class.ilSearchBaseGUI.php.

References ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), and ILIAS\Repository\user().

268  : void
269  {
270  if ($this->http->wrapper()->query()->has('item_ref_id')) {
271  $this->favourites->remove(
272  $this->user->getId(),
273  $this->http->wrapper()->query()->retrieve(
274  'item_ref_id',
275  $this->refinery->kindlyTo()->int()
276  )
277  );
278  }
279  $this->showSavedResults();
280  }
static http()
Fetches the global http state from ILIAS.
+ Here is the call graph for this function:

◆ showLinkIntoMultipleObjectsTree()

ilSearchBaseGUI::showLinkIntoMultipleObjectsTree ( )

Implements ilAdministrationCommandHandling.

Definition at line 328 of file class.ilSearchBaseGUI.php.

328  : void
329  {
330  $admin = new ilAdministrationCommandGUI($this);
331  $admin->showLinkIntoMultipleObjectsTree();
332  }
Handles Administration commands (cut, delete paste)

◆ showMoveIntoObjectTree()

ilSearchBaseGUI::showMoveIntoObjectTree ( )

Implements ilAdministrationCommandHandling.

Definition at line 341 of file class.ilSearchBaseGUI.php.

341  : void
342  {
343  $admin = new ilAdministrationCommandGUI($this);
344  $admin->showMoveIntoObjectTree();
345  }
Handles Administration commands (cut, delete paste)

◆ showPasteTree()

ilSearchBaseGUI::showPasteTree ( )

Implements ilAdministrationCommandHandling.

Definition at line 334 of file class.ilSearchBaseGUI.php.

334  : void
335  {
336  $admin = new ilAdministrationCommandGUI($this);
337  $admin->showPasteTree();
338  }
Handles Administration commands (cut, delete paste)

Field Documentation

◆ $clipboard

ClipboardManager ilSearchBaseGUI::$clipboard
protected

Definition at line 59 of file class.ilSearchBaseGUI.php.

◆ $container_view_manager

ViewManager ilSearchBaseGUI::$container_view_manager
protected

Definition at line 60 of file class.ilSearchBaseGUI.php.

◆ $ctrl

ilCtrl ilSearchBaseGUI::$ctrl
protected

Definition at line 63 of file class.ilSearchBaseGUI.php.

◆ $favourites

ilFavouritesManager ilSearchBaseGUI::$favourites
protected

Definition at line 61 of file class.ilSearchBaseGUI.php.

◆ $form

◆ $http

GlobalHttpState ilSearchBaseGUI::$http
protected

Definition at line 70 of file class.ilSearchBaseGUI.php.

◆ $ilias

ILIAS ilSearchBaseGUI::$ilias
protected

Definition at line 64 of file class.ilSearchBaseGUI.php.

◆ $lng

ilLanguage ilSearchBaseGUI::$lng
protected

Definition at line 65 of file class.ilSearchBaseGUI.php.

◆ $locator

ilLocatorGUI ilSearchBaseGUI::$locator
protected

Definition at line 67 of file class.ilSearchBaseGUI.php.

◆ $logger

ilLogger ilSearchBaseGUI::$logger
protected

Definition at line 73 of file class.ilSearchBaseGUI.php.

◆ $next_link

string ilSearchBaseGUI::$next_link = ''
protected

Definition at line 77 of file class.ilSearchBaseGUI.php.

◆ $prev_link

string ilSearchBaseGUI::$prev_link = ''
protected

Definition at line 76 of file class.ilSearchBaseGUI.php.

◆ $refinery

Factory ilSearchBaseGUI::$refinery
protected

Definition at line 71 of file class.ilSearchBaseGUI.php.

◆ $search_cache

ilUserSearchCache ilSearchBaseGUI::$search_cache
protected

Definition at line 54 of file class.ilSearchBaseGUI.php.

Referenced by getSearchCache().

◆ $search_mode

string ilSearchBaseGUI::$search_mode = ''
protected

Definition at line 55 of file class.ilSearchBaseGUI.php.

◆ $settings

ilSearchSettings ilSearchBaseGUI::$settings
protected

Definition at line 57 of file class.ilSearchBaseGUI.php.

◆ $tpl

ilGlobalTemplateInterface ilSearchBaseGUI::$tpl
protected

Definition at line 66 of file class.ilSearchBaseGUI.php.

◆ $tree

ilTree ilSearchBaseGUI::$tree
protected

Definition at line 69 of file class.ilSearchBaseGUI.php.

◆ $user

ilObjUser ilSearchBaseGUI::$user
protected

Definition at line 68 of file class.ilSearchBaseGUI.php.

◆ SEARCH_AND

const ilSearchBaseGUI::SEARCH_AND = 'and'

Definition at line 47 of file class.ilSearchBaseGUI.php.

◆ SEARCH_DETAILS

◆ SEARCH_FAST

const ilSearchBaseGUI::SEARCH_FAST = 1

◆ SEARCH_FORM_LUCENE

const ilSearchBaseGUI::SEARCH_FORM_LUCENE = 1

Definition at line 50 of file class.ilSearchBaseGUI.php.

Referenced by ilLuceneSearchGUI\executeCommand().

◆ SEARCH_FORM_STANDARD

const ilSearchBaseGUI::SEARCH_FORM_STANDARD = 2

◆ SEARCH_FORM_USER

const ilSearchBaseGUI::SEARCH_FORM_USER = 3

Definition at line 52 of file class.ilSearchBaseGUI.php.

Referenced by ilLuceneUserSearchGUI\executeCommand().

◆ SEARCH_OR

const ilSearchBaseGUI::SEARCH_OR = 'or'

Definition at line 48 of file class.ilSearchBaseGUI.php.

Referenced by ilSearchGUI\getCombination().


The documentation for this class was generated from the following file: