ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilSearchBaseGUI Class Reference
+ Inheritance diagram for ilSearchBaseGUI:
+ Collaboration diagram for ilSearchBaseGUI:

Public Member Functions

 __construct ()
 Constructor @access 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...
 
 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...
 
 showMoveIntoObjectTree ()
 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...
 
 addToDeskObject ()
 Add desktop item @access public. More...
 
 removeFromDeskObject ()
 Remove from desktop @access public. More...
 
 delete ()
 Show delete confirmation. More...
 
 cancelDelete ()
 Cancel delete. More...
 
 performDelete ()
 Perform Delete. More...
 
 cut ()
 Cut object. More...
 
 showLinkIntoMultipleObjectsTree ()
 Target selection link. More...
 
 showMoveIntoObjectTree ()
 Target selection cut. More...
 
 performPasteIntoMultipleObjects ()
 Perform paste into multiple objects. More...
 
 paste ()
 Paste. More...
 
 clear ()
 clear clipboard More...
 
 enableAdministrationPanel ()
 Enable administration panel. More...
 
 disableAdministrationPanel ()
 Disable administration panel. More...
 
 cancelMoveLinkObject ()
 Cancel move/link. More...
 
 keepObjectsInClipboardObject ()
 cancel action but keep objects in clipboard More...
 

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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilSearchBaseGUI::__construct ( )

Constructor @access public.

Reimplemented in ilAdvancedSearchGUI, ilSearchGUI, ilLuceneAdvancedSearchGUI, ilLuceneSearchGUI, and ilLuceneUserSearchGUI.

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

48 {
49 global $ilCtrl,$ilias,$lng,$tpl,$ilMainMenu;
50
51 $this->ilias =&$ilias;
52 $this->ctrl =&$ilCtrl;
53 $this->tpl =&$tpl;
54 $this->lng =&$lng;
55 $this->lng->loadLanguageModule('search');
56
57 $ilMainMenu->setActive('search');
58 $this->settings = new ilSearchSettings();
59 }
global $ilCtrl
Definition: ilias.php:18
redirection script todo: (a better solution should control the processing via a xml file)
settings()
Definition: settings.php:2

References $ilCtrl, $ilias, $lng, $tpl, and settings().

+ Here is the call graph for this function:

Member Function Documentation

◆ addLocator()

ilSearchBaseGUI::addLocator ( )

Add Locator.

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

342 {
343 $ilLocator->addItem($this->lng->txt('search'), $this->ctrl->getLinkTarget($this));
344 $this->tpl->setLocator();
345 }

◆ addPager()

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

Add Pager.

@access public

Parameters

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

355 {
356 global $tpl;
357
358 $_SESSION["$a_session_key"] = max($_SESSION["$a_session_key"], $this->search_cache->getResultPageNumber());
359
360 if ($_SESSION["$a_session_key"] == 1 and
361 (count($result->getResults()) < $result->getMaxHits())) {
362 return true;
363 }
364
365 if ($this->search_cache->getResultPageNumber() > 1) {
366 $this->ctrl->setParameter($this, 'page_number', $this->search_cache->getResultPageNumber() - 1);
367 /* $this->tpl->setCurrentBlock('prev');
368 $this->tpl->setVariable('PREV_LINK',$this->ctrl->getLinkTarget($this,'performSearch'));
369 $this->tpl->setVariable('TXT_PREV',$this->lng->txt('search_page_prev'));
370 $this->tpl->parseCurrentBlock();
371 */
372 $this->prev_link = $this->ctrl->getLinkTarget($this, 'performSearch');
373 }
374 for ($i = 1;$i <= $_SESSION["$a_session_key"];$i++) {
375 if ($i == $this->search_cache->getResultPageNumber()) {
376 /* $this->tpl->setCurrentBlock('pages_link');
377 $this->tpl->setVariable('NUMBER',$i);
378 $this->tpl->parseCurrentBlock();
379 */
380 continue;
381 }
382
383 $this->ctrl->setParameter($this, 'page_number', $i);
384 $link = '<a href="' . $this->ctrl->getLinkTarget($this, 'performSearch') . '" /a>' . $i . '</a> ';
385 /* $this->tpl->setCurrentBlock('pages_link');
386 $this->tpl->setVariable('NUMBER',$link);
387 $this->tpl->parseCurrentBlock();
388 */
389 }
390
391
392 if (count($result->getResults()) >= $result->getMaxHits()) {
393 $this->ctrl->setParameter($this, 'page_number', $this->search_cache->getResultPageNumber() + 1);
394 /* $this->tpl->setCurrentBlock('next');
395 $this->tpl->setVariable('NEXT_LINK',$this->ctrl->getLinkTarget($this,'performSearch'));
396 $this->tpl->setVariable('TXT_NEXT',$this->lng->txt('search_page_next'));
397 $this->tpl->parseCurrentBlock();
398 */
399 $this->next_link = $this->ctrl->getLinkTarget($this, 'performSearch');
400 }
401
402 /* $this->tpl->setCurrentBlock('prev_next');
403 $this->tpl->setVariable('SEARCH_PAGE',$this->lng->txt('search_page'));
404 $this->tpl->parseCurrentBlock();
405 */
406
407 $this->ctrl->clearParameters($this);
408 }
$result
$_SESSION["AccountId"]
$i
Definition: disco.tpl.php:19

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

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

+ Here is the caller graph for this function:

◆ addToDeskObject()

ilSearchBaseGUI::addToDeskObject ( )

Interface methods.

Implements ilDesktopItemHandling.

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

214 {
215 include_once './Services/PersonalDesktop/classes/class.ilDesktopItemGUI.php';
217 $this->showSavedResults();
218 }
static addToDesktop()
Add desktop item @access public.

References ilDesktopItemGUI\addToDesktop().

+ Here is the call graph for this function:

◆ autoComplete()

ilSearchBaseGUI::autoComplete ( )

Data resource for autoComplete.

Reimplemented in ilSearchGUI.

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

435 {
436 $q = $_REQUEST["term"];
437 include_once("./Services/Search/classes/class.ilSearchAutoComplete.php");
439 echo $list;
440 exit;
441 }
static getList($a_str)
Get completion list.
if(isset($_REQUEST['delete'])) $list
Definition: registry.php:41

References $list, exit, and ilSearchAutoComplete\getList().

+ Here is the call graph for this function:

◆ buildSearchAreaPath()

ilSearchBaseGUI::buildSearchAreaPath (   $a_root_node)
protected

Build path for search area.

Returns

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

415 {
416 global $tree;
417
418 $path_arr = $tree->getPathFull($a_root_node, ROOT_FOLDER_ID);
419 $counter = 0;
420 foreach ($path_arr as $data) {
421 if ($counter++) {
422 $path .= " > ";
423 $path .= $data['title'];
424 } else {
425 $path .= $this->lng->txt('repository');
426 }
427 }
428 return $path;
429 }
$counter

References $counter, $data, and $path.

◆ cancelDelete()

ilSearchBaseGUI::cancelDelete ( )

Cancel delete.

Implements ilAdministrationCommandHandling.

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

244 {
245 $this->showSavedResults();
246 }

◆ cancelMoveLinkObject()

ilSearchBaseGUI::cancelMoveLinkObject ( )

Cancel move/link.

Implements ilAdministrationCommandHandling.

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

249 {
250 $this->showSavedResults();
251 }

◆ clear()

ilSearchBaseGUI::clear ( )

clear clipboard

Implements ilAdministrationCommandHandling.

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

312 {
313 unset($_SESSION['clipboard']);
314 $this->ctrl->redirect($this);
315 }

References $_SESSION.

◆ cut()

ilSearchBaseGUI::cut ( )

Interface ilAdministrationCommandHandler.

Implements ilAdministrationCommandHandling.

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

267 {
268 include_once './Services/Administration/classes/class.ilAdministrationCommandGUI.php';
269 $admin = new ilAdministrationCommandGUI($this);
270 $admin->cut();
271 }
Handles Administration commands (cut, delete paste)

◆ delete()

ilSearchBaseGUI::delete ( )

Show deletion screen.

Implements ilAdministrationCommandHandling.

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

234 {
235 include_once './Services/Administration/classes/class.ilAdministrationCommandGUI.php';
236 $admin = new ilAdministrationCommandGUI($this);
237 $admin->delete();
238 }

◆ disableAdministrationPanel()

ilSearchBaseGUI::disableAdministrationPanel ( )

Disable administration panel.

Implements ilAdministrationCommandHandling.

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

324 {
325 $_SESSION["il_cont_admin_panel"] = false;
326 $this->ctrl->redirect($this);
327 }

References $_SESSION.

◆ enableAdministrationPanel()

ilSearchBaseGUI::enableAdministrationPanel ( )

Enable administration panel.

Implements ilAdministrationCommandHandling.

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

318 {
319 $_SESSION["il_cont_admin_panel"] = true;
320 $this->ctrl->redirect($this);
321 }

References $_SESSION.

◆ getCreationDateForm()

ilSearchBaseGUI::getCreationDateForm ( )
protected

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

445 {
446 $options = $this->search_cache->getCreationFilter();
447
448 include_once './Services/Form/classes/class.ilPropertyFormGUI.php';
449 $form = new ilPropertyFormGUI();
450 $form->setOpenTag(false);
451 $form->setCloseTag(false);
452
453 $enabled = new ilCheckboxInputGUI($this->lng->txt('search_filter_cd'), 'screation');
454 $enabled->setValue(1);
455 $enabled->setChecked((bool) $options['enabled']);
456 $form->addItem($enabled);
457
458 #$group = new ilRadioGroupInputGUI('', 'screation_type');
459 #$group->setValue((int) $options['type']);
460 #$group->addOption($opt1 = new ilRadioOption($this->lng->txt('search_filter_date'), 1));
461
462 $limit_sel = new ilSelectInputGUI('', 'screation_ontype');
463 $limit_sel->setValue($options['ontype']);
464 $limit_sel->setOptions(
465 array(
466 1 => $this->lng->txt('search_created_after'),
467 2 => $this->lng->txt('search_created_before'),
468 3 => $this->lng->txt('search_created_on')
469 )
470 );
471 $enabled->addSubItem($limit_sel);
472
473
474 if ($options['date']) {
475 $now = new ilDate($options['date'], IL_CAL_UNIX);
476 } else {
477 $now = new ilDate(time(), IL_CAL_UNIX);
478 }
479 $ds = new ilDateTimeInputGUI('', 'screation_date');
480 $ds->setRequired(true);
481 $ds->setDate($now);
482 $enabled->addSubItem($ds);
483
484 #$group->addOption($opt2 = new ilRadioOption($this->lng->txt('search_filter_duration'), 2));
485
486 #$duration = new ilDurationInputGUI($this->lng->txt('search_filter_duration'), 'screation_duration');
487 #$duration->setMonths((int) $options['duration']['MM']);
488 #$duration->setDays((int) $options['duration']['dd']);
489 #$duration->setShowMonths(true);
490 #$duration->setShowDays(true);
491 #$duration->setShowHours(false);
492 #$duration->setShowMinutes(false);
493 #$duration->setTitle($this->lng->txt('search_newer_than'));
494 #$opt2->addSubItem($duration);
495
496 #$enabled->addSubItem($group);
497
498 $form->setFormAction($GLOBALS['ilCtrl']->getFormAction($this, 'performSearch'));
499
500 return $form;
501 }
if(!isset( $_REQUEST[ 'ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
Definition: as_login.php:20
const IL_CAL_UNIX
This class represents a checkbox property in a property form.
This class represents a date/time property in a property form.
Class for single dates.
This class represents a property form user interface.
This class represents a selection list property in a property form.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
if(isset($_POST['submit'])) $form

References $form, $GLOBALS, $options, and IL_CAL_UNIX.

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

+ Here is the caller graph for this function:

◆ getSearchAreaForm()

ilSearchBaseGUI::getSearchAreaForm ( )

Init standard search form.

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

164 {
165 global $lng, $ilCtrl;
166
167 include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
168 $form = new ilPropertyFormGUI();
169 $form->setOpenTag(false);
170 $form->setCloseTag(false);
171
172 // term combination
173 $radg = new ilHiddenInputGUI('search_term_combination');
174 $radg->setValue(ilSearchSettings::getInstance()->getDefaultOperator());
175 $form->addItem($radg);
176
177 // search area
178 include_once("./Services/Form/classes/class.ilRepositorySelectorInputGUI.php");
179 $ti = new ilRepositorySelectorInputGUI($lng->txt("search_area"), "area");
180 $ti->setSelectText($lng->txt("search_select_search_area"));
181 $form->addItem($ti);
182 $ti->readFromSession();
183
184 // alex, 15.8.2012: Added the following lines to get the value
185 // from the main menu top right input search form
186 if (isset($_POST["root_id"])) {
187 $ti->setValue($_POST["root_id"]);
188 $ti->writeToSession();
189 }
190 $form->setFormAction($ilCtrl->getFormAction($this, 'performSearch'));
191
192 return $form;
193 }
$_POST["username"]
This class represents a hidden form property in a property form.
This class represents a repository selector in a property form.

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

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

+ 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 507 of file class.ilSearchBaseGUI.php.

508 {
509 return $this->search_cache;
510 }

Referenced by ilSearchGUI\parseCreationFilter().

+ Here is the caller graph for this function:

◆ handleCommand()

ilSearchBaseGUI::handleCommand (   $a_cmd)

Handle command.

Parameters
string$a_cmd

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

201 {
202 if (method_exists($this, $a_cmd)) {
203 $this->$a_cmd();
204 } else {
205 $a_cmd .= 'Object';
206 $this->$a_cmd();
207 }
208 }

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

+ Here is the caller graph for this function:

◆ initStandardSearchForm()

ilSearchBaseGUI::initStandardSearchForm (   $a_mode)

Init standard search form.

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

85 {
86 global $lng, $ilCtrl;
87
88 include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
89 $this->form = new ilPropertyFormGUI();
90 $this->form->setOpenTag(false);
91 $this->form->setCloseTag(false);
92
93 // term combination
94 $radg = new ilHiddenInputGUI('search_term_combination');
95 $radg->setValue(ilSearchSettings::getInstance()->getDefaultOperator());
96 $this->form->addItem($radg);
97
98 if (ilSearchSettings::getInstance()->isLuceneItemFilterEnabled()) {
99 if ($a_mode == self::SEARCH_FORM_STANDARD) {
100 // search type
101 $radg = new ilRadioGroupInputGUI($lng->txt("search_type"), "type");
102 $radg->setValue(
103 $this->getType() ==
107 );
108 $op1 = new ilRadioOption($lng->txt("search_fast_info"), ilSearchBaseGUI::SEARCH_FAST);
109 $radg->addOption($op1);
110 $op2 = new ilRadioOption($lng->txt("search_details_info"), ilSearchBaseGUI::SEARCH_DETAILS);
111 } else {
112 $op2 = new ilCheckboxInputGUI($this->lng->txt('search_filter_by_type'), 'item_filter_enabled');
113 $op2->setValue(1);
114 // $op2->setChecked($this->getType() == ilSearchBaseGUI::SEARCH_DETAILS);
115 }
116
117
118 $cbgr = new ilCheckboxGroupInputGUI('', 'filter_type');
119 $cbgr->setUseValuesAsKeys(true);
120 $details = $this->getDetails();
121 $det = false;
122 foreach (ilSearchSettings::getInstance()->getEnabledLuceneItemFilterDefinitions() as $type => $data) {
123 $cb = new ilCheckboxOption($lng->txt($data['trans']), $type);
124 if ($details[$type]) {
125 $det = true;
126 }
127 $cbgr->addOption($cb);
128 }
129 if ($a_mode == self::SEARCH_FORM_LUCENE) {
130 if (ilSearchSettings::getInstance()->isLuceneMimeFilterEnabled()) {
131 $mimes = $this->getMimeDetails();
132 foreach (ilSearchSettings::getInstance()->getEnabledLuceneMimeFilterDefinitions() as $type => $data) {
133 $op3 = new ilCheckboxOption($this->lng->txt($data['trans']), $type);
134 if ($mimes[$type]) {
135 $det = true;
136 }
137 $cbgr->addOption($op3);
138 }
139 }
140 }
141
142 $cbgr->setValue(array_merge((array) $details, (array) $mimes));
143 $op2->addSubItem($cbgr);
144
145 if ($a_mode != self::SEARCH_FORM_STANDARD && $det) {
146 $op2->setChecked(true);
147 }
148
150 $radg->addOption($op2);
151 $this->form->addItem($radg);
152 } else {
153 $this->form->addItem($op2);
154 }
155 }
156
157 $this->form->setFormAction($ilCtrl->getFormAction($this, 'performSearch'));
158 }
This class represents a property in a property form.
This class represents an option in a checkbox group.
This class represents a property in a property form.
This class represents an option in a radio group.
$type

References $data, $ilCtrl, $lng, $type, ilSearchSettings\getInstance(), SEARCH_DETAILS, SEARCH_FAST, and SEARCH_FORM_STANDARD.

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

+ 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 332 of file class.ilSearchBaseGUI.php.

333 {
334 $this->ctrl->redirect($this);
335 }

◆ link()

ilSearchBaseGUI::link ( )

Interface ilAdministrationCommandHandler.

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

277 {
278 include_once './Services/Administration/classes/class.ilAdministrationCommandGUI.php';
279 $admin = new ilAdministrationCommandGUI($this);
280 $admin->link();
281 }

◆ loadCreationFilter()

ilSearchBaseGUI::loadCreationFilter ( )
protected

Load creation date filter.

Returns
array

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

517 {
518 if (!$this->settings->isDateFilterEnabled()) {
519 return array();
520 }
521
522
523 $form = $this->getCreationDateForm();
524 $options = array();
525 if ($form->checkInput()) {
526 $options['enabled'] = $form->getInput('screation');
527 $options['type'] = $form->getInput('screation_type');
528 $options['ontype'] = $form->getInput('screation_ontype');
529 $options['date'] = $form->getItemByPostVar('screation_date')->getDate()->get(IL_CAL_UNIX);
530 $options['duration'] = $form->getInput('screation_duration');
531 }
532 return $options;
533 }

References $form, $options, getCreationDateForm(), IL_CAL_UNIX, and settings().

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

+ 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 283 of file class.ilSearchBaseGUI.php.

284 {
285 include_once './Services/Administration/classes/class.ilAdministrationCommandGUI.php';
286 $admin = new ilAdministrationCommandGUI($this);
287 $admin->paste();
288 }

◆ performDelete()

ilSearchBaseGUI::performDelete ( )

Delete objects.

Implements ilAdministrationCommandHandling.

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

257 {
258 include_once './Services/Administration/classes/class.ilAdministrationCommandGUI.php';
259 $admin = new ilAdministrationCommandGUI($this);
260 $admin->performDelete();
261 }

◆ performPasteIntoMultipleObjects()

ilSearchBaseGUI::performPasteIntoMultipleObjects ( )

Perform paste into multiple objects.

Returns

Implements ilAdministrationCommandHandling.

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

305 {
306 include_once './Services/Administration/classes/class.ilAdministrationCommandGUI.php';
307 $admin = new ilAdministrationCommandGUI($this);
308 $admin->performPasteIntoMultipleObjects();
309 }

◆ prepareOutput()

ilSearchBaseGUI::prepareOutput ( )

Reimplemented in ilAdvancedSearchGUI, ilSearchGUI, ilLuceneAdvancedSearchGUI, ilLuceneSearchGUI, and ilLuceneUserSearchGUI.

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

62 {
63 global $ilLocator, $lng;
64
65 $this->tpl->getStandardTemplate();
66
67 // $ilLocator->addItem($this->lng->txt('search'),$this->ctrl->getLinkTarget($this));
68 // $this->tpl->setLocator();
69
70 //$this->tpl->setTitleIcon(ilUtil::getImagePath("icon_src_b.gif"),
71 // $lng->txt("search"));
72 $this->tpl->setTitleIcon(
73 ilObject::_getIcon("", "big", "src"),
74 ""
75 );
76 $this->tpl->setTitle($lng->txt("search"));
77
79 }
static _getIcon( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
static infoPanel($a_keep=true)

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

+ Here is the call graph for this function:

◆ removeFromDeskObject()

ilSearchBaseGUI::removeFromDeskObject ( )

Remove from dektop.

Implements ilDesktopItemHandling.

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

224 {
225 include_once './Services/PersonalDesktop/classes/class.ilDesktopItemGUI.php';
227 $this->showSavedResults();
228 }
static removeFromDesktop()
Remove item from personal desktop @access public.

References ilDesktopItemGUI\removeFromDesktop().

+ Here is the call graph for this function:

◆ showLinkIntoMultipleObjectsTree()

ilSearchBaseGUI::showLinkIntoMultipleObjectsTree ( )

Target selection link.

Returns

Implements ilAdministrationCommandHandling.

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

291 {
292 include_once './Services/Administration/classes/class.ilAdministrationCommandGUI.php';
293 $admin = new ilAdministrationCommandGUI($this);
294 $admin->showLinkIntoMultipleObjectsTree();
295 }

◆ showMoveIntoObjectTree()

ilSearchBaseGUI::showMoveIntoObjectTree ( )

Target selection cut.

Returns

Implements ilAdministrationCommandHandling.

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

298 {
299 include_once './Services/Administration/classes/class.ilAdministrationCommandGUI.php';
300 $admin = new ilAdministrationCommandGUI($this);
301 $admin->showMoveIntoObjectTree();
302 }

Field Documentation

◆ $ctrl

ilSearchBaseGUI::$ctrl = null
protected

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

◆ $ilias

ilSearchBaseGUI::$ilias = null

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

Referenced by __construct().

◆ $lng

◆ $settings

ilSearchBaseGUI::$settings = null
protected

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

◆ $tpl

ilSearchBaseGUI::$tpl = null

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

Referenced by __construct(), and addPager().

◆ SEARCH_AND

const ilSearchBaseGUI::SEARCH_AND = 'and'

Definition at line 26 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 29 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 31 of file class.ilSearchBaseGUI.php.

Referenced by ilLuceneUserSearchGUI\executeCommand().

◆ SEARCH_OR

const ilSearchBaseGUI::SEARCH_OR = 'or'

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

Referenced by ilSearchGUI\getCombination().


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