ILIAS  release_8 Revision v8.24
ilPDSelectedItemsBlockSelectedItemsViewGUI 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 ilPDSelectedItemsBlockSelectedItemsViewGUI:
+ Collaboration diagram for ilPDSelectedItemsBlockSelectedItemsViewGUI:

Public Member Functions

 getGroups ()
 
 getScreenId ()
 
 getTitle ()
 
 supportsSelectAll ()
 
 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.ilPDSelectedItemsBlockSelectedItemsViewGUI.php.

Member Function Documentation

◆ getGroups()

ilPDSelectedItemsBlockSelectedItemsViewGUI::getGroups ( )
Returns
ilPDSelectedItemsBlockGroup[]

Reimplemented from ilPDSelectedItemsBlockViewGUI.

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

21 : array
22 {
23 if ($this->viewSettings->isSortedByLocation()) {
24 return $this->groupItemsByLocation();
25 } elseif ($this->viewSettings->isSortedByAlphabet()) {
26 return $this->sortItemsByAlphabetInOneGroup();
27 }
28
29 return $this->groupItemsByType();
30 }

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

+ Here is the call graph for this function:

◆ getIntroductionHtml()

ilPDSelectedItemsBlockSelectedItemsViewGUI::getIntroductionHtml ( )

Reimplemented from ilPDSelectedItemsBlockViewGUI.

Definition at line 47 of file class.ilPDSelectedItemsBlockSelectedItemsViewGUI.php.

47 : string
48 {
49 $tpl = new ilTemplate('tpl.dashboard_intro.html', true, true, 'Services/Dashboard');
50 $tpl->setVariable('IMG_PD_LARGE', ilObject::_getIcon(0, 'big', 'pd'));
51 $tpl->setVariable('TXT_WELCOME', $this->lng->txt('pdesk_intro'));
52
53 $tpl->setVariable('TXT_INTRO_2', sprintf(
54 $this->lng->txt('pdesk_intro3'),
55 '<a href="' . ilLink::_getStaticLink(1, 'root', true) . '">' . $this->getRepositoryTitle() . '</a>'
56 ));
57 $tpl->setVariable('TXT_INTRO_3', $this->lng->txt('pdesk_intro4'));
58
59 return $tpl->get();
60 }
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.
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

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

+ Here is the call graph for this function:

◆ getScreenId()

ilPDSelectedItemsBlockSelectedItemsViewGUI::getScreenId ( )

Reimplemented from ilPDSelectedItemsBlockViewGUI.

Definition at line 32 of file class.ilPDSelectedItemsBlockSelectedItemsViewGUI.php.

32 : string
33 {
34 return 'sel_items';
35 }

◆ getTitle()

ilPDSelectedItemsBlockSelectedItemsViewGUI::getTitle ( )

Reimplemented from ilPDSelectedItemsBlockViewGUI.

Definition at line 37 of file class.ilPDSelectedItemsBlockSelectedItemsViewGUI.php.

37 : string
38 {
39 return $this->lng->txt('dash_favourites');
40 }

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ supportsSelectAll()

ilPDSelectedItemsBlockSelectedItemsViewGUI::supportsSelectAll ( )

Reimplemented from ilPDSelectedItemsBlockViewGUI.

Definition at line 42 of file class.ilPDSelectedItemsBlockSelectedItemsViewGUI.php.

42 : bool
43 {
44 return true;
45 }

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