ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 require_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
Class ilPDSelectedItemsBlockViewGUI.
special template class to simplify handling of ITX/PEAR