ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilContainerSkillGUI 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 ilContainerSkillGUI:

Public Member Functions

 __construct (ilContainerGUI $a_container_gui)
 
 executeCommand ()
 
 addTabs ()
 

Protected Attributes

ilCtrl $ctrl
 
ilTabsGUI $tabs
 
ilLanguage $lng
 
ilContainerGUI $container_gui
 
ilContainer $container
 
ilAccessHandler $access
 
ilSkillManagementSettings $skmg_settings
 
int $ref_id = 0
 

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

Constructor & Destructor Documentation

◆ __construct()

ilContainerSkillGUI::__construct ( ilContainerGUI  $a_container_gui)

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

References $DIC, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilObjectGUI\getObject(), ILIAS\Repository\lng(), and ILIAS\Repository\tabs().

41  {
42  global $DIC;
43 
44  $this->ctrl = $DIC->ctrl();
45  $this->tabs = $DIC->tabs();
46  $this->lng = $DIC->language();
47  $this->access = $DIC->access();
48 
49  $this->container_gui = $a_container_gui;
50  /* @var $obj ilContainer */
51  $obj = $this->container_gui->getObject();
52  $this->container = $obj;
53  $this->ref_id = $this->container->getRefId();
54  $this->skmg_settings = new ilSkillManagementSettings();
55  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

Member Function Documentation

◆ addTabs()

ilContainerSkillGUI::addTabs ( )

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

References $ctrl, $lng, $tabs, ILIAS\Repository\access(), ilTabsGUI\addSubTab(), ilCtrl\getLinkTargetByClass(), and ilLanguage\txt().

Referenced by executeCommand().

89  : void
90  {
92  $lng = $this->lng;
94 
95  if ($this->access->checkAccess("read", "", $this->ref_id)) {
97  "mem_profiles",
98  $lng->txt("cont_skill_profiles"),
99  $ctrl->getLinkTargetByClass("ilContSkillPresentationGUI", "")
100  );
101  $tabs->addSubTab(
102  "mem_records",
103  $lng->txt("cont_skill_records"),
104  $ctrl->getLinkTargetByClass("ilContSkillPresentationGUI", "showRecords")
105  );
106  }
107 
108  if ($this->access->checkAccess("grade", "", $this->ref_id)) {
109  $tabs->addSubTab(
110  "members",
111  $lng->txt("cont_skill_members"),
112  $ctrl->getLinkTargetByClass("ilContSkillAdminGUI", "listMembers")
113  );
114  }
115 
116  if ($this->access->checkAccess("write", "", $this->ref_id)) {
117  $tabs->addSubTab(
118  "competences",
119  $lng->txt("cont_skill_assigned_comp"),
120  $ctrl->getLinkTargetByClass("ilContSkillAdminGUI", "listCompetences")
121  );
122 
123  if ($this->skmg_settings->getLocalAssignmentOfProfiles()
124  || $this->skmg_settings->getAllowLocalProfiles()) {
125  $tabs->addSubTab(
126  "profiles",
127  $lng->txt("cont_skill_assigned_profiles"),
128  $ctrl->getLinkTargetByClass("ilContSkillAdminGUI", "listProfiles")
129  );
130  }
131 
132  $tabs->addSubTab(
133  "settings",
134  $lng->txt("settings"),
135  $ctrl->getLinkTargetByClass("ilContSkillAdminGUI", "settings")
136  );
137  }
138  }
getLinkTargetByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
addSubTab(string $a_id, string $a_text, string $a_link, string $a_frame="")
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilContainerSkillGUI::executeCommand ( )

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

References $ctrl, ILIAS\Repository\access(), addTabs(), ILIAS\Repository\ctrl(), and ilCtrl\forwardCommand().

57  : void
58  {
60 
61  $next_class = $this->ctrl->getNextClass($this);
62  $cmd = $this->ctrl->getCmd("showProfiles");
63 
64  $this->addTabs();
65 
66  switch ($next_class) {
67  case "ilcontskillpresentationgui":
68  if ($this->access->checkAccess("read", "", $this->ref_id)) {
69  $gui = new ilContSkillPresentationGUI($this->container_gui);
70  $ctrl->forwardCommand($gui);
71  }
72  break;
73 
74  case "ilcontskilladmingui":
75  if ($this->access->checkAccess("write", "", $this->ref_id) || $this->access->checkAccess("grade", "", $this->ref_id)) {
76  $gui = new ilContSkillAdminGUI($this->container_gui);
77  $ctrl->forwardCommand($gui);
78  }
79  break;
80 
81  default:
82  /*if (in_array($cmd, array("show")))
83  {
84  $this->$cmd();
85  }*/
86  }
87  }
forwardCommand(object $a_gui_object)
Skill presentation for container (course/group)
Container skills administration.
+ Here is the call graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilContainerSkillGUI::$access
protected

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

◆ $container

ilContainer ilContainerSkillGUI::$container
protected

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

◆ $container_gui

ilContainerGUI ilContainerSkillGUI::$container_gui
protected

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

◆ $ctrl

ilCtrl ilContainerSkillGUI::$ctrl
protected

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

Referenced by addTabs(), and executeCommand().

◆ $lng

ilLanguage ilContainerSkillGUI::$lng
protected

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

Referenced by addTabs().

◆ $ref_id

int ilContainerSkillGUI::$ref_id = 0
protected

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

◆ $skmg_settings

ilSkillManagementSettings ilContainerSkillGUI::$skmg_settings
protected

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

◆ $tabs

ilTabsGUI ilContainerSkillGUI::$tabs
protected

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

Referenced by addTabs().


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