ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilADNTabHandling Class Reference

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

+ Collaboration diagram for ilADNTabHandling:

Public Member Functions

 __construct (private int $ref_id)
 ilMMTabHandling constructor. More...
 
 initTabs (string $tab, ?string $subtab=null, bool $backtab=false)
 

Protected Attributes

ilCtrl $ctrl
 

Private Attributes

ilRbacSystem $rbacsystem
 
ilTabsGUI $tabs
 
ilLanguage $lng
 
ilHelpGUI $help
 

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 Class ilADNTabHandling

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 23 of file class.ilADNTabHandling.php.

Constructor & Destructor Documentation

◆ __construct()

ilADNTabHandling::__construct ( private int  $ref_id)

ilMMTabHandling constructor.

Definition at line 38 of file class.ilADNTabHandling.php.

References $DIC, ILIAS\Repository\ctrl(), ILIAS\Repository\help(), ILIAS\Repository\lng(), and ILIAS\Repository\tabs().

39  {
40  global $DIC;
41  $this->tabs = $DIC['ilTabs'];
42  $this->lng = $DIC->language();
43  $this->lng->loadLanguageModule('adn');
44  $this->ctrl = $DIC['ilCtrl'];
45  $this->rbacsystem = $DIC['rbacsystem'];
46  $this->help = $DIC->help();
47  }
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

Member Function Documentation

◆ initTabs()

ilADNTabHandling::initTabs ( string  $tab,
?string  $subtab = null,
bool  $backtab = false 
)

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

References ILIAS\Repository\ctrl(), ILIAS\Repository\help(), ILIAS\Repository\lng(), null, ilObjAdministrativeNotificationGUI\TAB_MAIN, and ILIAS\Repository\tabs().

49  : void
50  {
51  $this->tabs->clearTargets(); // clears Help-ID
52 
53  // Help Screen-ID
54  $this->help->setScreenIdComponent('adn');
55  $this->help->setScreenId($tab);
56  if (null !== $subtab) {
57  $this->help->setSubScreenId($subtab);
58  }
59 
60  if ($this->rbacsystem->checkAccess('visible,read', $this->ref_id)) {
61  $this->tabs->addTab(
64  $this->ctrl->getLinkTargetByClass(ilObjAdministrativeNotificationGUI::class, ilObjAdministrativeNotificationGUI::TAB_MAIN)
65  );
66  /*
67  switch ($tab) {
68  case ilObjMainMenuGUI::TAB_MAIN:
69  $this->tabs->addSubTab(
70  ilMMTopItemGUI::CMD_VIEW_TOP_ITEMS,
71  $this->lng->txt(ilMMTopItemGUI::CMD_VIEW_TOP_ITEMS),
72  $this->ctrl->getLinkTargetByClass(ilMMTopItemGUI::class, ilMMTopItemGUI::CMD_VIEW_TOP_ITEMS)
73  );
74  $this->tabs->addSubTab(
75  ilMMSubItemGUI::CMD_VIEW_SUB_ITEMS,
76  $this->lng->txt(ilMMSubItemGUI::CMD_VIEW_SUB_ITEMS),
77  $this->ctrl->getLinkTargetByClass(ilMMSubItemGUI::class, ilMMSubItemGUI::CMD_VIEW_SUB_ITEMS)
78  );
79  $this->tabs->activateSubTab($subtab);
80  break;
81  }
82  if ($subtab === null) {
83  $subtab = ilMMTopItemGUI::CMD_VIEW_TOP_ITEMS;
84  }
85  $this->tabs->activateSubTab($subtab);*/
86  }
87  if ($this->rbacsystem->checkAccess('edit_permission', $this->ref_id)) {
88  $this->tabs->addTab(
89  'perm_settings',
90  $this->lng->txt('perm_settings'),
91  $this->ctrl->getLinkTargetByClass([ilObjAdministrativeNotificationGUI::class, ilPermissionGUI::class], 'perm')
92  );
93  }
94  if ($backtab) {
95  /* $this->tabs->clearTargets();
96  if ($calling_class == ilMMSubItemGUI::class) {
97  $this->tabs->setBackTarget($this->lng->txt('tab_back'), $this->ctrl->getLinkTargetByClass(ilMMSubItemGUI::class, $subtab));
98  } else {
99  $this->tabs->setBackTarget($this->lng->txt('tab_back'), $this->ctrl->getLinkTargetByClass(ilObjMainMenuGUI::class, $subtab));
100  }*/
101  }
102  $this->tabs->activateTab($tab);
103  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilCtrl ilADNTabHandling::$ctrl
protected

Definition at line 31 of file class.ilADNTabHandling.php.

◆ $help

ilHelpGUI ilADNTabHandling::$help
private

Definition at line 33 of file class.ilADNTabHandling.php.

◆ $lng

ilLanguage ilADNTabHandling::$lng
private

Definition at line 29 of file class.ilADNTabHandling.php.

◆ $rbacsystem

ilRbacSystem ilADNTabHandling::$rbacsystem
private

Definition at line 25 of file class.ilADNTabHandling.php.

◆ $tabs

ilTabsGUI ilADNTabHandling::$tabs
private

Definition at line 27 of file class.ilADNTabHandling.php.


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