ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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
 
 $skmg_settings
 

Detailed Description

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

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

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 55 of file class.ilContainerSkillGUI.php.

References $DIC.

56  {
57  global $DIC;
58 
59  $this->ctrl = $DIC->ctrl();
60  $this->tabs = $DIC->tabs();
61  $this->lng = $DIC->language();
62  $this->access = $DIC->access();
63 
64  $this->container_gui = $a_container_gui;
65  $this->container = $a_container_gui->object;
66  $this->ref_id = $this->container->getRefId();
67  $this->skmg_settings = new ilSkillManagementSettings();
68  }
global $DIC
Definition: goto.php:24

Member Function Documentation

◆ addTabs()

ilContainerSkillGUI::addTabs ( )

Add tabs.

Parameters

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

References $ctrl, $lng, and $tabs.

Referenced by executeCommand().

113  {
114  $tabs = $this->tabs;
115  $lng = $this->lng;
116  $ctrl = $this->ctrl;
117 
118  if ($this->access->checkAccess("read", "", $this->ref_id)) {
119  $tabs->addSubTab(
120  "list",
121  $lng->txt("cont_skill_show"),
122  $ctrl->getLinkTargetByClass("ilContSkillPresentationGUI", "")
123  );
124  }
125 
126  if ($this->access->checkAccess("grade", "", $this->ref_id)) {
127  $tabs->addSubTab(
128  "members",
129  $lng->txt("cont_skill_members"),
130  $ctrl->getLinkTargetByClass("ilContSkillAdminGUI", "listMembers")
131  );
132  }
133 
134  if ($this->access->checkAccess("write", "", $this->ref_id)) {
135  $tabs->addSubTab(
136  "competences",
137  $lng->txt("cont_skill_assigned_comp"),
138  $ctrl->getLinkTargetByClass("ilContSkillAdminGUI", "listCompetences")
139  );
140 
141  if ($this->skmg_settings->getLocalAssignmentOfProfiles()
142  || $this->skmg_settings->getAllowLocalProfiles()) {
143  $tabs->addSubTab(
144  "profiles",
145  $lng->txt("cont_skill_assigned_profiles"),
146  $ctrl->getLinkTargetByClass("ilContSkillAdminGUI", "listProfiles")
147  );
148  }
149 
150  $tabs->addSubTab(
151  "settings",
152  $lng->txt("settings"),
153  $ctrl->getLinkTargetByClass("ilContSkillAdminGUI", "settings")
154  );
155  }
156  }
+ Here is the caller graph for this function:

◆ executeCommand()

ilContainerSkillGUI::executeCommand ( )

Execute command.

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

References $ctrl, and addTabs().

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

◆ $skmg_settings

ilContainerSkillGUI::$skmg_settings
protected

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

◆ $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: