ILIAS  release_8 Revision v8.24
class.ilPDSelectedItemsBlockSelectedItemsViewGUI.php
Go to the documentation of this file.
1<?php
2
20{
21 public function getGroups(): array
22 {
23 if ($this->viewSettings->isSortedByLocation()) {
24 return $this->groupItemsByLocation();
25 } elseif ($this->viewSettings->isSortedByAlphabet()) {
26 return $this->sortItemsByAlphabetInOneGroup();
27 }
28
29 return $this->groupItemsByType();
30 }
31
32 public function getScreenId(): string
33 {
34 return 'sel_items';
35 }
36
37 public function getTitle(): string
38 {
39 return $this->lng->txt('dash_favourites');
40 }
41
42 public function supportsSelectAll(): bool
43 {
44 return true;
45 }
46
47 public function getIntroductionHtml(): string
48 {
49 $tpl = new ilTemplate('tpl.dashboard_intro.html', true, true, 'Services/Dashboard');
50 $tpl->setVariable('IMG_PD_LARGE', ilObject::_getIcon(0, 'big', 'pd'));
51 $tpl->setVariable('TXT_WELCOME', $this->lng->txt('pdesk_intro'));
52
53 $tpl->setVariable('TXT_INTRO_2', sprintf(
54 $this->lng->txt('pdesk_intro3'),
55 '<a href="' . ilLink::_getStaticLink(1, 'root', true) . '">' . $this->getRepositoryTitle() . '</a>'
56 ));
57 $tpl->setVariable('TXT_INTRO_3', $this->lng->txt('pdesk_intro4'));
58
59 return $tpl->get();
60 }
61}
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.
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...
special template class to simplify handling of ITX/PEAR
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41