ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilPDSelectedItemsBlockMembershipsViewGUI.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.ilPDSelectedItemsBlockMembershipsViewGUI.php';
5
10{
14 public function getGroups()
15 {
16 if ($this->viewSettings->isSortedByLocation()) {
17 return $this->groupItemsByLocation();
18 } elseif ($this->viewSettings->isSortedByStartDate()) {
19 return $this->groupItemsByStartDate();
20 }
21
22 return $this->groupItemsByType();
23 }
24
28 public function getScreenId()
29 {
30 return 'crs_grp';
31 }
32
36 public function getTitle()
37 {
38 return $this->lng->txt('pd_my_memberships');
39 }
40
44 public function supportsSelectAll()
45 {
46 return false;
47 }
48
52 public function mayRemoveItem($refId)
53 {
54 return $this->accessHandler->checkAccess('leave', $refId);
55 }
56
60 public function getIntroductionHtml()
61 {
62 $tpl = new ilTemplate('tpl.pd_my_memberships_intro.html', true, true, 'Services/PersonalDesktop');
63 $tpl->setVariable('IMG_PD_LARGE', ilObject::_getIcon('', 'big', 'pd'));
64 $tpl->setVariable('TXT_WELCOME', $this->lng->txt('pd_my_memberships_intro'));
65 $tpl->setVariable('TXT_INTRO_1', $this->lng->txt('pd_my_memberships_intro2'));
66
67 return $tpl->get();
68 }
69}
$tpl
Definition: ilias.php:10
An exception for terminatinating execution or to throw for unit testing.
static _getIcon( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
Class ilPDSelectedItemsBlockViewGUI.
special template class to simplify handling of ITX/PEAR