ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilPDSelectedItemsBlockMembershipsViewGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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 ()
 
 supportsSelectAll ()
 
 getIntroductionHtml ()
 
 getGroups ()
 
 mayRemoveItem (int $refId)
 
 setIsInManageMode (bool $isInManageMode)
 
 isInManageMode ()
 
 getItemGroups ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ilPDSelectedItemsBlockViewGUI
static bySettings (ilPDSelectedItemsBlockViewSettings $viewSettings)
 
- Protected Member Functions inherited from ilPDSelectedItemsBlockViewGUI
 isRootNode (int $refId)
 
 getRepositoryTitle ()
 
 preloadItemGroups (array $item_groups)
 
 groupItemsByType ()
 
 groupItemsByStartDate ()
 
 groupItemsByLocation ()
 
 sortItemsByAlphabetInOneGroup ()
 
- Protected Attributes inherited from ilPDSelectedItemsBlockViewGUI
ilPDSelectedItemsBlockViewSettings $viewSettings
 
ilPDSelectedItemsBlockProvider $provider
 
ilLanguage $lng
 
ilTree $tree
 
ilObjectDataCache $object_cache
 
ilRbacSystem $accessHandler
 
bool $isInManageMode = false
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

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

Member Function Documentation

◆ getGroups()

ilPDSelectedItemsBlockMembershipsViewGUI::getGroups ( )

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

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

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

◆ getIntroductionHtml()

ilPDSelectedItemsBlockMembershipsViewGUI::getIntroductionHtml ( )

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

References $tpl, ilObject\_getIcon(), and ILIAS\Repository\lng().

54  : 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  }
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41
+ Here is the call graph for this function:

◆ getScreenId()

ilPDSelectedItemsBlockMembershipsViewGUI::getScreenId ( )

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

34  : string
35  {
36  return 'crs_grp';
37  }

◆ getTitle()

ilPDSelectedItemsBlockMembershipsViewGUI::getTitle ( )

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

References ILIAS\Repository\lng().

39  : string
40  {
41  return $this->lng->txt('my_courses_groups');
42  }
+ Here is the call graph for this function:

◆ mayRemoveItem()

ilPDSelectedItemsBlockMembershipsViewGUI::mayRemoveItem (   $refId)

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

References $refId.

49  : bool
50  {
51  return $this->accessHandler->checkAccess('leave', $refId);
52  }
$refId
Definition: xapitoken.php:58

◆ supportsSelectAll()

ilPDSelectedItemsBlockMembershipsViewGUI::supportsSelectAll ( )

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

44  : bool
45  {
46  return false;
47  }

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