ILIAS  release_8 Revision v8.24
class.ilPDSelectedItemsBlockMembershipsViewGUI.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->isSortedByStartDate()) {
26 return $this->groupItemsByStartDate();
27 } elseif ($this->viewSettings->isSortedByAlphabet()) {
28 return $this->sortItemsByAlphabetInOneGroup();
29 }
30
31 return $this->groupItemsByType();
32 }
33
34 public function getScreenId(): string
35 {
36 return 'crs_grp';
37 }
38
39 public function getTitle(): string
40 {
41 return $this->lng->txt('my_courses_groups');
42 }
43
44 public function supportsSelectAll(): bool
45 {
46 return false;
47 }
48
49 public function mayRemoveItem($refId): bool
50 {
51 return $this->accessHandler->checkAccess('leave', $refId);
52 }
53
54 public function getIntroductionHtml(): string
55 {
56 $tpl = new ilTemplate('tpl.dashboard_my_memberships_intro.html', true, true, 'Services/Dashboard');
57 $tpl->setVariable('IMG_PD_LARGE', ilObject::_getIcon(0, 'big', 'pd'));
58 $tpl->setVariable('TXT_WELCOME', $this->lng->txt('pd_my_memberships_intro'));
59 $tpl->setVariable('TXT_INTRO_1', $this->lng->txt('pd_my_memberships_intro2'));
60
61 return $tpl->get();
62 }
63}
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
$refId
Definition: xapitoken.php:58