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

Class ilPDSelectedItemsBlockSelectedItemsViewGUI. 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 ()
 
 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()

ilPDSelectedItemsBlockSelectedItemsViewGUI::getGroups ( )

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

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

15  {
16  if ($this->viewSettings->isSortedByLocation()) {
17  return $this->groupItemsByLocation();
18  }
19 
20  return $this->groupItemsByType();
21  }
+ Here is the call graph for this function:

◆ getIntroductionHtml()

ilPDSelectedItemsBlockSelectedItemsViewGUI::getIntroductionHtml ( )

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

References $tpl, ilObject\_getIcon(), ilLink\_getStaticLink(), and ilPDSelectedItemsBlockViewGUI\getRepositoryTitle().

51  {
52  $tpl = new ilTemplate('tpl.pd_intro.html', true, true, 'Services/PersonalDesktop');
53  $tpl->setVariable('IMG_PD_LARGE', ilObject::_getIcon('', 'big', 'pd'));
54  $tpl->setVariable('TXT_WELCOME', $this->lng->txt('pdesk_intro'));
55  $tpl->setVariable("TXT_INTRO_1", sprintf($this->lng->txt('pdesk_intro2'), $this->lng->txt('to_desktop')));
56 
57  require_once 'Services/Link/classes/class.ilLink.php';
58  $tpl->setVariable('TXT_INTRO_2', sprintf(
59  $this->lng->txt('pdesk_intro3'),
60  '<a href="' . ilLink::_getStaticLink(1, 'root', true) . '">' . $this->getRepositoryTitle() . '</a>'
61  ));
62  $tpl->setVariable('TXT_INTRO_3', $this->lng->txt('pdesk_intro4'));
63 
64  return $tpl->get();
65  }
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()

ilPDSelectedItemsBlockSelectedItemsViewGUI::getScreenId ( )

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

27  {
28  return 'sel_items';
29  }

◆ getTitle()

ilPDSelectedItemsBlockSelectedItemsViewGUI::getTitle ( )

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

35  {
36  return $this->lng->txt('pd_my_offers');
37  }

◆ supportsSelectAll()

ilPDSelectedItemsBlockSelectedItemsViewGUI::supportsSelectAll ( )

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

43  {
44  return true;
45  }

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