ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSearchBaseGUI Class Reference
+ Inheritance diagram for ilSearchBaseGUI:
+ Collaboration diagram for ilSearchBaseGUI:

Public Member Functions

 __construct ()
 Constructor public. More...
 
 prepareOutput ()
 
 initStandardSearchForm ($a_mode)
 Init standard search form. More...
 
 getSearchAreaForm ()
 Init standard search form. More...
 
 handleCommand ($a_cmd)
 Handle command. More...
 
 addToDeskObject ()
 Interface methods. More...
 
 removeFromDeskObject ()
 Remove from dektop. More...
 
 delete ()
 Show deletion screen. More...
 
 cancelDelete ()
 Cancel delete. More...
 
 cancelObject ()
 
 cancelMoveLinkObject ()
 Cancel move/link. More...
 
 performDelete ()
 Delete objects. More...
 
 cut ()
 Interface ilAdministrationCommandHandler. More...
 
 link ()
 Interface ilAdministrationCommandHandler. More...
 
 paste ()
 Paste. More...
 
 showLinkIntoMultipleObjectsTree ()
 Target selection link. More...
 
 showPasteTree ()
 Target selection cut. More...
 
 performPasteIntoMultipleObjects ()
 Perform paste into multiple objects. More...
 
 clear ()
 clear clipboard More...
 
 enableAdministrationPanel ()
 Enable administration panel. More...
 
 disableAdministrationPanel ()
 Disable administration panel. More...
 
 keepObjectsInClipboardObject ()
 cancel action but keep objects in clipboard
Returns
void
More...
 
 addLocator ()
 Add Locator. More...
 
 autoComplete ()
 Data resource for autoComplete. More...
 
- 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
 
 $ilias = null
 
 $lng = null
 
 $tpl = null
 

Protected Member Functions

 addPager ($result, $a_session_key)
 Add Pager. More...
 
 buildSearchAreaPath ($a_root_node)
 Build path for search area. More...
 
 getCreationDateForm ()
 
 getSearchCache ()
 Get user search cache. More...
 
 loadCreationFilter ()
 Load creation date filter. More...
 

Protected Attributes

 $settings = null
 
 $ctrl = null
 
 $favourites
 
 $user
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilSearchBaseGUI::__construct ( )

Constructor public.

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

References $DIC, $ilias, $lng, $tpl, settings(), and user().

74  {
75  global $DIC;
76 
77  $ilCtrl = $DIC['ilCtrl'];
78  $ilias = $DIC['ilias'];
79  $lng = $DIC['lng'];
80  $tpl = $DIC['tpl'];
81  $ilMainMenu = $DIC['ilMainMenu'];
82 
83  $this->ilias = &$ilias;
84  $this->ctrl = &$ilCtrl;
85  $this->tpl = &$tpl;
86  $this->lng = &$lng;
87  $this->lng->loadLanguageModule('search');
88 
89  $ilMainMenu->setActive('search');
90  $this->settings = new ilSearchSettings();
91  $this->favourites = new ilFavouritesManager();
92  $this->user = $DIC->user();
93  }
settings()
Definition: settings.php:2
Manages favourites, currently the interface for other components, needs discussion.
user()
Definition: user.php:4
global $DIC
Definition: goto.php:24
redirection script todo: (a better solution should control the processing via a xml file) ...
+ Here is the call graph for this function:

Member Function Documentation

◆ addLocator()

ilSearchBaseGUI::addLocator ( )

Add Locator.

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

387  {
388  $ilLocator->addItem($this->lng->txt('search'), $this->ctrl->getLinkTarget($this));
389  $this->tpl->setLocator();
390  }

◆ addPager()

ilSearchBaseGUI::addPager (   $result,
  $a_session_key 
)
protected

Add Pager.

public

Parameters

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

References $_SESSION, $DIC, $i, $result, and $tpl.

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

400  {
401  global $DIC;
402 
403  $tpl = $DIC['tpl'];
404 
405  $_SESSION["$a_session_key"] = max($_SESSION["$a_session_key"], $this->search_cache->getResultPageNumber());
406 
407  if ($_SESSION["$a_session_key"] == 1 and
408  (count($result->getResults()) < $result->getMaxHits())) {
409  return true;
410  }
411 
412  if ($this->search_cache->getResultPageNumber() > 1) {
413  $this->ctrl->setParameter($this, 'page_number', $this->search_cache->getResultPageNumber() - 1);
414  /* $this->tpl->setCurrentBlock('prev');
415  $this->tpl->setVariable('PREV_LINK',$this->ctrl->getLinkTarget($this,'performSearch'));
416  $this->tpl->setVariable('TXT_PREV',$this->lng->txt('search_page_prev'));
417  $this->tpl->parseCurrentBlock();
418  */
419  $this->prev_link = $this->ctrl->getLinkTarget($this, 'performSearch');
420  }
421  for ($i = 1;$i <= $_SESSION["$a_session_key"];$i++) {
422  if ($i == $this->search_cache->getResultPageNumber()) {
423  /* $this->tpl->setCurrentBlock('pages_link');
424  $this->tpl->setVariable('NUMBER',$i);
425  $this->tpl->parseCurrentBlock();
426  */
427  continue;
428  }
429 
430  $this->ctrl->setParameter($this, 'page_number', $i);
431  $link = '<a href="' . $this->ctrl->getLinkTarget($this, 'performSearch') . '" /a>' . $i . '</a> ';
432  /* $this->tpl->setCurrentBlock('pages_link');
433  $this->tpl->setVariable('NUMBER',$link);
434  $this->tpl->parseCurrentBlock();
435  */
436  }
437 
438 
439  if (count($result->getResults()) >= $result->getMaxHits()) {
440  $this->ctrl->setParameter($this, 'page_number', $this->search_cache->getResultPageNumber() + 1);
441  /* $this->tpl->setCurrentBlock('next');
442  $this->tpl->setVariable('NEXT_LINK',$this->ctrl->getLinkTarget($this,'performSearch'));
443  $this->tpl->setVariable('TXT_NEXT',$this->lng->txt('search_page_next'));
444  $this->tpl->parseCurrentBlock();
445  */
446  $this->next_link = $this->ctrl->getLinkTarget($this, 'performSearch');
447  }
448 
449  /* $this->tpl->setCurrentBlock('prev_next');
450  $this->tpl->setVariable('SEARCH_PAGE',$this->lng->txt('search_page'));
451  $this->tpl->parseCurrentBlock();
452  */
453 
454  $this->ctrl->clearParameters($this);
455  }
$_SESSION["AccountId"]
$result
global $DIC
Definition: goto.php:24
$i
Definition: metadata.php:24
+ Here is the caller graph for this function:

◆ addToDeskObject()

ilSearchBaseGUI::addToDeskObject ( )

Interface methods.

Implements ilDesktopItemHandling.

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

References $_GET, and user().

257  {
258  $this->favourites->add($this->user->getId(), (int) $_GET["item_ref_id"]);
259  $this->showSavedResults();
260  }
$_GET["client_id"]
user()
Definition: user.php:4
+ Here is the call graph for this function:

◆ autoComplete()

ilSearchBaseGUI::autoComplete ( )

Data resource for autoComplete.

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

References exit, and ilSearchAutoComplete\getList().

484  {
485  $q = $_REQUEST["term"];
486  include_once("./Services/Search/classes/class.ilSearchAutoComplete.php");
487  $list = ilSearchAutoComplete::getList($q);
488  echo $list;
489  exit;
490  }
exit
Definition: login.php:29
static getList($a_str)
Get completion list.
+ Here is the call graph for this function:

◆ buildSearchAreaPath()

ilSearchBaseGUI::buildSearchAreaPath (   $a_root_node)
protected

Build path for search area.

Returns

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

References $data, $DIC, and ROOT_FOLDER_ID.

462  {
463  global $DIC;
464 
465  $tree = $DIC['tree'];
466 
467  $path_arr = $tree->getPathFull($a_root_node, ROOT_FOLDER_ID);
468  $counter = 0;
469  foreach ($path_arr as $data) {
470  if ($counter++) {
471  $path .= " > ";
472  $path .= $data['title'];
473  } else {
474  $path .= $this->lng->txt('repository');
475  }
476  }
477  return $path;
478  }
$data
Definition: storeScorm.php:23
const ROOT_FOLDER_ID
Definition: constants.php:30
global $DIC
Definition: goto.php:24

◆ cancelDelete()

ilSearchBaseGUI::cancelDelete ( )

Cancel delete.

Implements ilAdministrationCommandHandling.

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

284  {
285  $this->showSavedResults();
286  }

◆ cancelMoveLinkObject()

ilSearchBaseGUI::cancelMoveLinkObject ( )

Cancel move/link.

Implements ilAdministrationCommandHandling.

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

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

◆ cancelObject()

ilSearchBaseGUI::cancelObject ( )

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

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

◆ clear()

ilSearchBaseGUI::clear ( )

clear clipboard

Implements ilAdministrationCommandHandling.

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

References $_SESSION.

357  {
358  unset($_SESSION['clipboard']);
359  $this->ctrl->redirect($this);
360  }
$_SESSION["AccountId"]

◆ cut()

ilSearchBaseGUI::cut ( )

Interface ilAdministrationCommandHandler.

Implements ilAdministrationCommandHandling.

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

312  {
313  include_once './Services/Administration/classes/class.ilAdministrationCommandGUI.php';
314  $admin = new ilAdministrationCommandGUI($this);
315  $admin->cut();
316  }
Handles Administration commands (cut, delete paste)

◆ delete()

ilSearchBaseGUI::delete ( )

Show deletion screen.

Implements ilAdministrationCommandHandling.

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

275  {
276  $admin = new ilAdministrationCommandGUI($this);
277  $admin->delete();
278  }
Handles Administration commands (cut, delete paste)

◆ disableAdministrationPanel()

ilSearchBaseGUI::disableAdministrationPanel ( )

Disable administration panel.

Implements ilAdministrationCommandHandling.

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

References $_SESSION.

369  {
370  $_SESSION["il_cont_admin_panel"] = false;
371  $this->ctrl->redirect($this);
372  }
$_SESSION["AccountId"]

◆ enableAdministrationPanel()

ilSearchBaseGUI::enableAdministrationPanel ( )

Enable administration panel.

Implements ilAdministrationCommandHandling.

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

References $_SESSION.

363  {
364  $_SESSION["il_cont_admin_panel"] = true;
365  $this->ctrl->redirect($this);
366  }
$_SESSION["AccountId"]

◆ getCreationDateForm()

ilSearchBaseGUI::getCreationDateForm ( )
protected

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

References $GLOBALS, IL_CAL_UNIX, and ilCheckboxInputGUI\setValue().

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

494  {
495  $options = $this->search_cache->getCreationFilter();
496 
497  include_once './Services/Form/classes/class.ilPropertyFormGUI.php';
498  $form = new ilPropertyFormGUI();
499  $form->setOpenTag(false);
500  $form->setCloseTag(false);
501 
502  $enabled = new ilCheckboxInputGUI($this->lng->txt('search_filter_cd'), 'screation');
503  $enabled->setValue(1);
504  $enabled->setChecked((bool) $options['enabled']);
505  $form->addItem($enabled);
506 
507  #$group = new ilRadioGroupInputGUI('', 'screation_type');
508  #$group->setValue((int) $options['type']);
509  #$group->addOption($opt1 = new ilRadioOption($this->lng->txt('search_filter_date'), 1));
510 
511  $limit_sel = new ilSelectInputGUI('', 'screation_ontype');
512  $limit_sel->setValue($options['ontype']);
513  $limit_sel->setOptions(
514  array(
515  1 => $this->lng->txt('search_created_after'),
516  2 => $this->lng->txt('search_created_before'),
517  3 => $this->lng->txt('search_created_on')
518  )
519  );
520  $enabled->addSubItem($limit_sel);
521 
522 
523  if ($options['date']) {
524  $now = new ilDate($options['date'], IL_CAL_UNIX);
525  } else {
526  $now = new ilDate(time(), IL_CAL_UNIX);
527  }
528  $ds = new ilDateTimeInputGUI('', 'screation_date');
529  $ds->setRequired(true);
530  $ds->setDate($now);
531  $enabled->addSubItem($ds);
532 
533  #$group->addOption($opt2 = new ilRadioOption($this->lng->txt('search_filter_duration'), 2));
534 
535  #$duration = new ilDurationInputGUI($this->lng->txt('search_filter_duration'), 'screation_duration');
536  #$duration->setMonths((int) $options['duration']['MM']);
537  #$duration->setDays((int) $options['duration']['dd']);
538  #$duration->setShowMonths(true);
539  #$duration->setShowDays(true);
540  #$duration->setShowHours(false);
541  #$duration->setShowMinutes(false);
542  #$duration->setTitle($this->lng->txt('search_newer_than'));
543  #$opt2->addSubItem($duration);
544 
545  #$enabled->addSubItem($group);
546 
547  $form->setFormAction($GLOBALS['DIC']['ilCtrl']->getFormAction($this, 'performSearch'));
548 
549  return $form;
550  }
This class represents a property form user interface.
This class represents a checkbox property in a property form.
const IL_CAL_UNIX
This class represents a date/time property in a property form.
Class for single dates.
setValue($a_value)
Set Value.
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
getFormAction($a_cmd, $a_formaction="")
get form action for command (command is method name without "Object", e.g.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSearchAreaForm()

ilSearchBaseGUI::getSearchAreaForm ( )

Init standard search form.

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

References $_POST, $DIC, $lng, and ilSearchSettings\getInstance().

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

204  {
205  global $DIC;
206 
207  $lng = $DIC['lng'];
208  $ilCtrl = $DIC['ilCtrl'];
209 
210  include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
211  $form = new ilPropertyFormGUI();
212  $form->setOpenTag(false);
213  $form->setCloseTag(false);
214 
215  // term combination
216  $radg = new ilHiddenInputGUI('search_term_combination');
217  $radg->setValue(ilSearchSettings::getInstance()->getDefaultOperator());
218  $form->addItem($radg);
219 
220  // search area
221  include_once("./Services/Form/classes/class.ilRepositorySelectorInputGUI.php");
222  $ti = new ilRepositorySelectorInputGUI($lng->txt("search_area"), "area");
223  $ti->setSelectText($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 (isset($_POST["root_id"])) {
230  $ti->setValue($_POST["root_id"]);
231  $ti->writeToSession();
232  }
233  $form->setFormAction($ilCtrl->getFormAction($this, 'performSearch'));
234 
235  return $form;
236  }
This class represents a property form user interface.
This class represents a hidden form property in a property form.
global $DIC
Definition: goto.php:24
$_POST["username"]
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSearchCache()

ilSearchBaseGUI::getSearchCache ( )
protected

Get user search cache.

Returns
ilUserSearchCache

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

Referenced by ilSearchGUI\parseCreationFilter().

557  {
558  return $this->search_cache;
559  }
+ Here is the caller graph for this function:

◆ handleCommand()

ilSearchBaseGUI::handleCommand (   $a_cmd)

Handle command.

Parameters
string$a_cmd

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

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

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

◆ initStandardSearchForm()

ilSearchBaseGUI::initStandardSearchForm (   $a_mode)

Init standard search form.

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

References $data, $DIC, $lng, $type, ilSearchSettings\getInstance(), 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().

122  {
123  global $DIC;
124 
125  $lng = $DIC['lng'];
126  $ilCtrl = $DIC['ilCtrl'];
127 
128  include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
129  $this->form = new ilPropertyFormGUI();
130  $this->form->setOpenTag(false);
131  $this->form->setCloseTag(false);
132 
133  // term combination
134  $radg = new ilHiddenInputGUI('search_term_combination');
135  $radg->setValue(ilSearchSettings::getInstance()->getDefaultOperator());
136  $this->form->addItem($radg);
137 
138  if (ilSearchSettings::getInstance()->isLuceneItemFilterEnabled()) {
139  if ($a_mode == self::SEARCH_FORM_STANDARD) {
140  // search type
141  $radg = new ilRadioGroupInputGUI($lng->txt("search_type"), "type");
142  $radg->setValue(
143  $this->getType() ==
147  );
148  $op1 = new ilRadioOption($lng->txt("search_fast_info"), ilSearchBaseGUI::SEARCH_FAST);
149  $radg->addOption($op1);
150  $op2 = new ilRadioOption($lng->txt("search_details_info"), ilSearchBaseGUI::SEARCH_DETAILS);
151  } else {
152  $op2 = new ilCheckboxInputGUI($this->lng->txt('search_filter_by_type'), 'item_filter_enabled');
153  $op2->setValue(1);
154  // $op2->setChecked($this->getType() == ilSearchBaseGUI::SEARCH_DETAILS);
155  }
156 
157 
158  $cbgr = new ilCheckboxGroupInputGUI('', 'filter_type');
159  $cbgr->setUseValuesAsKeys(true);
160  $details = $this->getDetails();
161  $det = false;
162  foreach (ilSearchSettings::getInstance()->getEnabledLuceneItemFilterDefinitions() as $type => $data) {
163  $cb = new ilCheckboxOption($lng->txt($data['trans']), $type);
164  if ($details[$type]) {
165  $det = true;
166  }
167  $cbgr->addOption($cb);
168  }
169  if ($a_mode == self::SEARCH_FORM_LUCENE) {
170  if (ilSearchSettings::getInstance()->isLuceneMimeFilterEnabled()) {
171  $mimes = $this->getMimeDetails();
172  foreach (ilSearchSettings::getInstance()->getEnabledLuceneMimeFilterDefinitions() as $type => $data) {
173  $op3 = new ilCheckboxOption($this->lng->txt($data['trans']), $type);
174  if ($mimes[$type]) {
175  $det = true;
176  }
177  $cbgr->addOption($op3);
178  }
179  }
180  }
181 
182  $cbgr->setValue(array_merge((array) $details, (array) $mimes));
183  $op2->addSubItem($cbgr);
184 
185  if ($a_mode != self::SEARCH_FORM_STANDARD && $det) {
186  $op2->setChecked(true);
187  }
188 
189  if ($a_mode == ilSearchBaseGUI::SEARCH_FORM_STANDARD) {
190  $radg->addOption($op2);
191  $this->form->addItem($radg);
192  } else {
193  $this->form->addItem($op2);
194  }
195  }
196 
197  $this->form->setFormAction($ilCtrl->getFormAction($this, 'performSearch'));
198  }
This class represents an option in a radio group.
$data
Definition: storeScorm.php:23
This class represents an option in a checkbox group.
This class represents a property form user interface.
$type
This class represents a checkbox property in a property form.
This class represents a hidden form property in a property form.
This class represents a property in a property form.
setValue($a_value)
Set Value.
setValue($a_value)
Set Value.
global $DIC
Definition: goto.php:24
This class represents a property in a property form.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ keepObjectsInClipboardObject()

ilSearchBaseGUI::keepObjectsInClipboardObject ( )

cancel action but keep objects in clipboard

Returns
void

Implements ilAdministrationCommandHandling.

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

378  {
379  $this->ctrl->redirect($this);
380  }

◆ link()

ilSearchBaseGUI::link ( )

Interface ilAdministrationCommandHandler.

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

322  {
323  include_once './Services/Administration/classes/class.ilAdministrationCommandGUI.php';
324  $admin = new ilAdministrationCommandGUI($this);
325  $admin->link();
326  }
Handles Administration commands (cut, delete paste)

◆ loadCreationFilter()

ilSearchBaseGUI::loadCreationFilter ( )
protected

Load creation date filter.

Returns
array

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

References getCreationDateForm(), IL_CAL_UNIX, and settings().

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

566  {
567  if (!$this->settings->isDateFilterEnabled()) {
568  return array();
569  }
570 
571 
572  $form = $this->getCreationDateForm();
573  $options = array();
574  if ($form->checkInput()) {
575  $options['enabled'] = $form->getInput('screation');
576  $options['type'] = $form->getInput('screation_type');
577  $options['ontype'] = $form->getInput('screation_ontype');
578  $options['date'] = $form->getItemByPostVar('screation_date')->getDate()->get(IL_CAL_UNIX);
579  $options['duration'] = $form->getInput('screation_duration');
580  }
581  return $options;
582  }
settings()
Definition: settings.php:2
const IL_CAL_UNIX
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ paste()

ilSearchBaseGUI::paste ( )

Paste.

Implements ilAdministrationCommandHandling.

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

329  {
330  include_once './Services/Administration/classes/class.ilAdministrationCommandGUI.php';
331  $admin = new ilAdministrationCommandGUI($this);
332  $admin->paste();
333  }
Handles Administration commands (cut, delete paste)

◆ performDelete()

ilSearchBaseGUI::performDelete ( )

Delete objects.

Implements ilAdministrationCommandHandling.

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

302  {
303  include_once './Services/Administration/classes/class.ilAdministrationCommandGUI.php';
304  $admin = new ilAdministrationCommandGUI($this);
305  $admin->performDelete();
306  }
Handles Administration commands (cut, delete paste)

◆ performPasteIntoMultipleObjects()

ilSearchBaseGUI::performPasteIntoMultipleObjects ( )

Perform paste into multiple objects.

Returns

Implements ilAdministrationCommandHandling.

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

350  {
351  include_once './Services/Administration/classes/class.ilAdministrationCommandGUI.php';
352  $admin = new ilAdministrationCommandGUI($this);
353  $admin->performPasteIntoMultipleObjects();
354  }
Handles Administration commands (cut, delete paste)

◆ prepareOutput()

ilSearchBaseGUI::prepareOutput ( )

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

References $DIC, $lng, ilObject\_getIcon(), and ilUtil\infoPanel().

96  {
97  global $DIC;
98 
99  $ilLocator = $DIC['ilLocator'];
100  $lng = $DIC['lng'];
101 
102  $this->tpl->loadStandardTemplate();
103 
104  // $ilLocator->addItem($this->lng->txt('search'),$this->ctrl->getLinkTarget($this));
105  // $this->tpl->setLocator();
106 
107  //$this->tpl->setTitleIcon(ilUtil::getImagePath("icon_src_b.gif"),
108  // $lng->txt("search"));
109  $this->tpl->setTitleIcon(
110  ilObject::_getIcon("", "big", "src"),
111  ""
112  );
113  $this->tpl->setTitle($lng->txt("search"));
114 
116  }
static _getIcon( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
global $DIC
Definition: goto.php:24
static infoPanel($a_keep=true)
+ Here is the call graph for this function:

◆ removeFromDeskObject()

ilSearchBaseGUI::removeFromDeskObject ( )

Remove from dektop.

Implements ilDesktopItemHandling.

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

References $_GET, and user().

266  {
267  $this->favourites->remove($this->user->getId(), (int) $_GET["item_ref_id"]);
268  $this->showSavedResults();
269  }
$_GET["client_id"]
user()
Definition: user.php:4
+ Here is the call graph for this function:

◆ showLinkIntoMultipleObjectsTree()

ilSearchBaseGUI::showLinkIntoMultipleObjectsTree ( )

Target selection link.

Returns

Implements ilAdministrationCommandHandling.

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

336  {
337  include_once './Services/Administration/classes/class.ilAdministrationCommandGUI.php';
338  $admin = new ilAdministrationCommandGUI($this);
339  $admin->showLinkIntoMultipleObjectsTree();
340  }
Handles Administration commands (cut, delete paste)

◆ showPasteTree()

ilSearchBaseGUI::showPasteTree ( )

Target selection cut.

Returns

Implements ilAdministrationCommandHandling.

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

343  {
344  include_once './Services/Administration/classes/class.ilAdministrationCommandGUI.php';
345  $admin = new ilAdministrationCommandGUI($this);
346  $admin->showPasteTree();
347  }
Handles Administration commands (cut, delete paste)

Field Documentation

◆ $ctrl

ilSearchBaseGUI::$ctrl = null
protected

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

◆ $favourites

ilSearchBaseGUI::$favourites
protected

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

◆ $ilias

ilSearchBaseGUI::$ilias = null

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

Referenced by __construct().

◆ $lng

◆ $settings

ilSearchBaseGUI::$settings = null
protected

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

◆ $tpl

ilSearchBaseGUI::$tpl = null

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

Referenced by __construct(), and addPager().

◆ $user

ilSearchBaseGUI::$user
protected

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

◆ SEARCH_AND

const ilSearchBaseGUI::SEARCH_AND = 'and'

Definition at line 42 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 45 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 47 of file class.ilSearchBaseGUI.php.

Referenced by ilLuceneUserSearchGUI\executeCommand().

◆ SEARCH_OR

const ilSearchBaseGUI::SEARCH_OR = 'or'

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

Referenced by ilSearchGUI\getCombination().


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