ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilPDSelectedItemsBlockSelectedItemsViewGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Services/PersonalDesktop/ItemsBlock/classes/class.ilPDSelectedItemsBlockViewGUI.php';
5
10{
14 public function getGroups()
15 {
16 if ($this->viewSettings->isSortedByLocation()) {
17 return $this->groupItemsByLocation();
18 }
19
20 return $this->groupItemsByType();
21 }
22
26 public function getScreenId()
27 {
28 return 'sel_items';
29 }
30
34 public function getTitle()
35 {
36 return $this->lng->txt('pd_my_offers');
37 }
38
42 public function supportsSelectAll()
43 {
44 return true;
45 }
46
50 public function getIntroductionHtml()
51 {
52 $tpl = new ilTemplate('tpl.pd_intro.html', true, true, 'Services/PersonalDesktop');
53 $tpl->setVariable('IMG_PD_LARGE', ilObject::_getIcon('', 'big', 'pd'));
54 $tpl->setVariable('TXT_WELCOME', $this->lng->txt('pdesk_intro'));
55 $tpl->setVariable("TXT_INTRO_1", sprintf($this->lng->txt('pdesk_intro2'), $this->lng->txt('to_desktop')));
56
57 require_once 'Services/Link/classes/class.ilLink.php';
58 $tpl->setVariable('TXT_INTRO_2', sprintf(
59 $this->lng->txt('pdesk_intro3'),
60 '<a href="' . ilLink::_getStaticLink(1, 'root', true) . '">' . $this->getRepositoryTitle() . '</a>'
61 ));
62 $tpl->setVariable('TXT_INTRO_3', $this->lng->txt('pdesk_intro4'));
63
64 return $tpl->get();
65 }
66}
$tpl
Definition: ilias.php:10
An exception for terminatinating execution or to throw for unit testing.
Class ilPDSelectedItemsBlockViewGUI.
special template class to simplify handling of ITX/PEAR