ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilContainerSkillGUI Class Reference

Skills for container (course/group) (top gui class) More...

+ Collaboration diagram for ilContainerSkillGUI:

Public Member Functions

 __construct ($a_container_gui)
 Constructor. More...
 
 executeCommand ()
 Execute command. More...
 
 addTabs ()
 Add tabs. More...
 

Protected Attributes

 $ctrl
 
 $tabs
 
 $lng
 
 $container_gui
 
 $container
 
 $access
 

Detailed Description

Skills for container (course/group) (top gui class)

Author
Alex Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

@ilCtrl_Calls ilContainerSkillGUI: ilContSkillPresentationGUI, ilContSkillAdminGUI

Definition at line 12 of file class.ilContainerSkillGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilContainerSkillGUI::__construct (   $a_container_gui)

Constructor.

Parameters

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

51 {
52 global $DIC;
53
54 $this->ctrl = $DIC->ctrl();
55 $this->tabs = $DIC->tabs();
56 $this->lng = $DIC->language();
57 $this->access = $DIC->access();
58
59 $this->container_gui = $a_container_gui;
60 $this->container = $a_container_gui->object;
61 $this->ref_id = $this->container->getRefId();
62 }
global $DIC
Definition: saml.php:7

References $DIC.

Member Function Documentation

◆ addTabs()

ilContainerSkillGUI::addTabs ( )

Add tabs.

Parameters

Definition at line 106 of file class.ilContainerSkillGUI.php.

107 {
111
112 if ($this->access->checkAccess("read", "", $this->ref_id)) {
113 $tabs->addSubTab(
114 "list",
115 $lng->txt("cont_skill_show"),
116 $ctrl->getLinkTargetByClass("ilContSkillPresentationGUI", "")
117 );
118 }
119
120 if ($this->access->checkAccess("grade", "", $this->ref_id)) {
121 $tabs->addSubTab(
122 "members",
123 $lng->txt("cont_skill_members"),
124 $ctrl->getLinkTargetByClass("ilContSkillAdminGUI", "listMembers")
125 );
126 }
127
128 if ($this->access->checkAccess("write", "", $this->ref_id)) {
129 $tabs->addSubTab(
130 "competences",
131 $lng->txt("cont_skill_assigned_comp"),
132 $ctrl->getLinkTargetByClass("ilContSkillAdminGUI", "listCompetences")
133 );
134
135 $tabs->addSubTab(
136 "settings",
137 $lng->txt("settings"),
138 $ctrl->getLinkTargetByClass("ilContSkillAdminGUI", "settings")
139 );
140 }
141 }

References $ctrl, $lng, and $tabs.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ executeCommand()

ilContainerSkillGUI::executeCommand ( )

Execute command.

Definition at line 67 of file class.ilContainerSkillGUI.php.

68 {
70
71 $next_class = $this->ctrl->getNextClass($this);
72 $cmd = $this->ctrl->getCmd("show");
73
74 $this->addTabs();
75
76 switch ($next_class) {
77 case "ilcontskillpresentationgui":
78 if ($this->access->checkAccess("read", "", $this->ref_id)) {
79 include_once("./Services/Container/Skills/classes/class.ilContSkillPresentationGUI.php");
80 $gui = new ilContSkillPresentationGUI($this->container_gui);
81 $ctrl->forwardCommand($gui);
82 }
83 break;
84
85 case "ilcontskilladmingui":
86 if ($this->access->checkAccess("write", "", $this->ref_id) || $this->access->checkAccess("grade", "", $this->ref_id)) {
87 include_once("./Services/Container/Skills/classes/class.ilContSkillAdminGUI.php");
88 $gui = new ilContSkillAdminGUI($this->container_gui);
89 $ctrl->forwardCommand($gui);
90 }
91 break;
92
93 default:
94 /*if (in_array($cmd, array("show")))
95 {
96 $this->$cmd();
97 }*/
98 }
99 }
Container skills administration.
Skill presentatio for container (course/group)

References $ctrl, and addTabs().

+ Here is the call graph for this function:

Field Documentation

◆ $access

ilContainerSkillGUI::$access
protected

Definition at line 43 of file class.ilContainerSkillGUI.php.

◆ $container

ilContainerSkillGUI::$container
protected

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

◆ $container_gui

ilContainerSkillGUI::$container_gui
protected

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

◆ $ctrl

ilContainerSkillGUI::$ctrl
protected

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

Referenced by addTabs(), and executeCommand().

◆ $lng

ilContainerSkillGUI::$lng
protected

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

Referenced by addTabs().

◆ $tabs

ilContainerSkillGUI::$tabs
protected

Definition at line 22 of file class.ilContainerSkillGUI.php.

Referenced by addTabs().


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