ILIAS  release_7 Revision v7.30-3-g800a261c036
ilADNTabHandling Class Reference

Class ilADNTabHandling. More...

+ Collaboration diagram for ilADNTabHandling:

Public Member Functions

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

Protected Attributes

 $ctrl
 

Private Attributes

 $ref_id
 
 $rbacsystem
 
 $tabs
 
 $lng
 
 $help
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilADNTabHandling::__construct ( int  $ref_id)

ilMMTabHandling constructor.

Parameters
int$ref_id

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

40 {
41 global $DIC;
42
43 $this->ref_id = $ref_id;
44 $this->tabs = $DIC['ilTabs'];
45 $this->lng = $DIC->language();
46 $this->lng->loadLanguageModule('adn');
47 $this->ctrl = $DIC['ilCtrl'];
48 $this->rbacsystem = $DIC['rbacsystem'];
49 $this->help = $DIC->help();
50 }
global $DIC
Definition: goto.php:24
help()
Definition: help.php:2

References $DIC, $ref_id, and help().

+ Here is the call graph for this function:

Member Function Documentation

◆ initTabs()

ilADNTabHandling::initTabs ( string  $tab,
string  $subtab = null,
bool  $backtab = false,
  $calling_class = "" 
)
Parameters
string$tab
string | null$subtab
bool$backtab
string | null$calling_class

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

59 {
60 $this->tabs->clearTargets(); // clears Help-ID
61
62 // Help Screen-ID
63 $this->help->setScreenIdComponent('adn');
64 $this->help->setScreenId($tab);
65 $this->help->setSubScreenId($subtab);
66
67 if ($this->rbacsystem->checkAccess('visible,read', $this->ref_id)) {
68 $this->tabs->addTab(
71 $this->ctrl->getLinkTargetByClass(ilObjAdministrativeNotificationGUI::class, ilObjAdministrativeNotificationGUI::TAB_MAIN)
72 );
73 /*
74 switch ($tab) {
75 case ilObjMainMenuGUI::TAB_MAIN:
76 $this->tabs->addSubTab(
77 ilMMTopItemGUI::CMD_VIEW_TOP_ITEMS,
78 $this->lng->txt(ilMMTopItemGUI::CMD_VIEW_TOP_ITEMS),
79 $this->ctrl->getLinkTargetByClass(ilMMTopItemGUI::class, ilMMTopItemGUI::CMD_VIEW_TOP_ITEMS)
80 );
81 $this->tabs->addSubTab(
82 ilMMSubItemGUI::CMD_VIEW_SUB_ITEMS,
83 $this->lng->txt(ilMMSubItemGUI::CMD_VIEW_SUB_ITEMS),
84 $this->ctrl->getLinkTargetByClass(ilMMSubItemGUI::class, ilMMSubItemGUI::CMD_VIEW_SUB_ITEMS)
85 );
86 $this->tabs->activateSubTab($subtab);
87 break;
88 }
89 if ($subtab === null) {
90 $subtab = ilMMTopItemGUI::CMD_VIEW_TOP_ITEMS;
91 }
92 $this->tabs->activateSubTab($subtab);*/
93 }
94 if ($this->rbacsystem->checkAccess('edit_permission', $this->ref_id)) {
95 $this->tabs->addTab(
96 'perm_settings',
97 $this->lng->txt('perm_settings'),
98 $this->ctrl->getLinkTargetByClass(array(ilObjAdministrativeNotificationGUI::class, ilPermissionGUI::class), 'perm')
99 );
100 }
101 if ($backtab) {
102 /* $this->tabs->clearTargets();
103 if ($calling_class == ilMMSubItemGUI::class) {
104 $this->tabs->setBackTarget($this->lng->txt('tab_back'), $this->ctrl->getLinkTargetByClass(ilMMSubItemGUI::class, $subtab));
105 } else {
106 $this->tabs->setBackTarget($this->lng->txt('tab_back'), $this->ctrl->getLinkTargetByClass(ilObjMainMenuGUI::class, $subtab));
107 }*/
108 }
109 $this->tabs->activateTab($tab);
110 }

References help(), and ilObjAdministrativeNotificationGUI\TAB_MAIN.

+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilADNTabHandling::$ctrl
protected

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

◆ $help

ilADNTabHandling::$help
private

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

◆ $lng

ilADNTabHandling::$lng
private

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

◆ $rbacsystem

ilADNTabHandling::$rbacsystem
private

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

◆ $ref_id

ilADNTabHandling::$ref_id
private

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

Referenced by __construct().

◆ $tabs

ilADNTabHandling::$tabs
private

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


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