ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilPDSelectedItemsBlockMembershipsViewGUI Class Reference

Class ilPDSelectedItemsBlockMembershipsViewGUI. More...

+ Inheritance diagram for ilPDSelectedItemsBlockMembershipsViewGUI:
+ Collaboration diagram for ilPDSelectedItemsBlockMembershipsViewGUI:

Public Member Functions

 getGroups ()
 
 getScreenId ()
 
 getTitle ()
 
 supportsSelectAll ()
 
 mayRemoveItem ($refId)
 
 getIntroductionHtml ()
 
- Public Member Functions inherited from ilPDSelectedItemsBlockViewGUI
 getScreenId ()
 
 getTitle ()
 
 getMinimumDetailLevelForSection ()
 
 supportsSelectAll ()
 
 getIntroductionHtml ()
 
 getGroups ()
 
 mayRemoveItem ($refId)
 
 getItemGroups ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ilPDSelectedItemsBlockViewGUI
static bySettings (ilPDSelectedItemsBlockViewSettings $viewSettings)
 
- Protected Member Functions inherited from ilPDSelectedItemsBlockViewGUI
 isRootNode ($refId)
 
 getRepositoryTitle ()
 
 preloadItemGroups (array $item_groups)
 
 groupItemsByType ()
 
 groupItemsByStartDate ()
 
 groupItemsByLocation ()
 
- Protected Attributes inherited from ilPDSelectedItemsBlockViewGUI
 $viewSettings
 
 $provider
 
 $lng
 
 $tree
 
 $object_cache
 
 $accessHandler
 

Detailed Description

Member Function Documentation

◆ getGroups()

ilPDSelectedItemsBlockMembershipsViewGUI::getGroups ( )

Definition at line 14 of file class.ilPDSelectedItemsBlockMembershipsViewGUI.php.

References ilPDSelectedItemsBlockViewGUI\groupItemsByLocation(), ilPDSelectedItemsBlockViewGUI\groupItemsByStartDate(), and ilPDSelectedItemsBlockViewGUI\groupItemsByType().

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  }
+ Here is the call graph for this function:

◆ getIntroductionHtml()

ilPDSelectedItemsBlockMembershipsViewGUI::getIntroductionHtml ( )

Definition at line 60 of file class.ilPDSelectedItemsBlockMembershipsViewGUI.php.

References $tpl, and ilObject\_getIcon().

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  }
static _getIcon( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
$tpl
Definition: ilias.php:10
special template class to simplify handling of ITX/PEAR
+ Here is the call graph for this function:

◆ getScreenId()

ilPDSelectedItemsBlockMembershipsViewGUI::getScreenId ( )

Definition at line 28 of file class.ilPDSelectedItemsBlockMembershipsViewGUI.php.

29  {
30  return 'crs_grp';
31  }

◆ getTitle()

ilPDSelectedItemsBlockMembershipsViewGUI::getTitle ( )

Definition at line 36 of file class.ilPDSelectedItemsBlockMembershipsViewGUI.php.

37  {
38  return $this->lng->txt('pd_my_memberships');
39  }

◆ mayRemoveItem()

ilPDSelectedItemsBlockMembershipsViewGUI::mayRemoveItem (   $refId)

Definition at line 52 of file class.ilPDSelectedItemsBlockMembershipsViewGUI.php.

53  {
54  return $this->accessHandler->checkAccess('leave', $refId);
55  }

◆ supportsSelectAll()

ilPDSelectedItemsBlockMembershipsViewGUI::supportsSelectAll ( )

Definition at line 44 of file class.ilPDSelectedItemsBlockMembershipsViewGUI.php.

45  {
46  return false;
47  }

The documentation for this class was generated from the following file: