ILIAS  release_7 Revision v7.30-3-g800a261c036
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
4
9{
13 public function getGroups()
14 {
15 if ($this->viewSettings->isSortedByLocation()) {
16 return $this->groupItemsByLocation();
17 } elseif ($this->viewSettings->isSortedByStartDate()) {
18 return $this->groupItemsByStartDate();
19 }
20
21 return $this->groupItemsByType();
22 }
23
27 public function getScreenId()
28 {
29 return 'crs_grp';
30 }
31
35 public function getTitle()
36 {
37 return $this->lng->txt('my_courses_groups');
38 }
39
43 public function supportsSelectAll()
44 {
45 return false;
46 }
47
51 public function mayRemoveItem($refId)
52 {
53 return $this->accessHandler->checkAccess('leave', $refId);
54 }
55
59 public function getIntroductionHtml()
60 {
61 $tpl = new ilTemplate('tpl.dashboard_my_memberships_intro.html', true, true, 'Services/Dashboard');
62 $tpl->setVariable('IMG_PD_LARGE', ilObject::_getIcon('', 'big', 'pd'));
63 $tpl->setVariable('TXT_WELCOME', $this->lng->txt('pd_my_memberships_intro'));
64 $tpl->setVariable('TXT_INTRO_1', $this->lng->txt('pd_my_memberships_intro2'));
65
66 return $tpl->get();
67 }
68}
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
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41
$refId
Definition: xapitoken.php:40