ILIAS  release_8 Revision v8.24
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

@ilCtrl_Calls ilContainerSkillGUI: ilContSkillPresentationGUI, ilContSkillAdminGUI

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

Constructor & Destructor Documentation

◆ __construct()

ilContainerSkillGUI::__construct ( ilContainerGUI  $a_container_gui)

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

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

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

+ Here is the call graph for this function:

Member Function Documentation

◆ addTabs()

ilContainerSkillGUI::addTabs ( )

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

87 : void
88 {
92
93 if ($this->access->checkAccess("read", "", $this->ref_id)) {
95 "list",
96 $lng->txt("cont_skill_show"),
97 $ctrl->getLinkTargetByClass("ilContSkillPresentationGUI", "")
98 );
99 }
100
101 if ($this->access->checkAccess("grade", "", $this->ref_id)) {
103 "members",
104 $lng->txt("cont_skill_members"),
105 $ctrl->getLinkTargetByClass("ilContSkillAdminGUI", "listMembers")
106 );
107 }
108
109 if ($this->access->checkAccess("write", "", $this->ref_id)) {
111 "competences",
112 $lng->txt("cont_skill_assigned_comp"),
113 $ctrl->getLinkTargetByClass("ilContSkillAdminGUI", "listCompetences")
114 );
115
116 if ($this->skmg_settings->getLocalAssignmentOfProfiles()
117 || $this->skmg_settings->getAllowLocalProfiles()) {
119 "profiles",
120 $lng->txt("cont_skill_assigned_profiles"),
121 $ctrl->getLinkTargetByClass("ilContSkillAdminGUI", "listProfiles")
122 );
123 }
124
126 "settings",
127 $lng->txt("settings"),
128 $ctrl->getLinkTargetByClass("ilContSkillAdminGUI", "settings")
129 );
130 }
131 }
getLinkTargetByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
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="")

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

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilContainerSkillGUI::executeCommand ( )

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

55 : void
56 {
58
59 $next_class = $this->ctrl->getNextClass($this);
60 $cmd = $this->ctrl->getCmd("show");
61
62 $this->addTabs();
63
64 switch ($next_class) {
65 case "ilcontskillpresentationgui":
66 if ($this->access->checkAccess("read", "", $this->ref_id)) {
67 $gui = new ilContSkillPresentationGUI($this->container_gui);
68 $ctrl->forwardCommand($gui);
69 }
70 break;
71
72 case "ilcontskilladmingui":
73 if ($this->access->checkAccess("write", "", $this->ref_id) || $this->access->checkAccess("grade", "", $this->ref_id)) {
74 $gui = new ilContSkillAdminGUI($this->container_gui);
75 $ctrl->forwardCommand($gui);
76 }
77 break;
78
79 default:
80 /*if (in_array($cmd, array("show")))
81 {
82 $this->$cmd();
83 }*/
84 }
85 }
Container skills administration.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
forwardCommand(object $a_gui_object)
@inheritDoc

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

+ Here is the call graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilContainerSkillGUI::$access
protected

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

◆ $container

ilContainer ilContainerSkillGUI::$container
protected

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

◆ $container_gui

ilContainerGUI ilContainerSkillGUI::$container_gui
protected

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

◆ $ctrl

ilCtrl ilContainerSkillGUI::$ctrl
protected

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

Referenced by addTabs(), and executeCommand().

◆ $lng

ilLanguage ilContainerSkillGUI::$lng
protected

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

Referenced by addTabs().

◆ $ref_id

int ilContainerSkillGUI::$ref_id = 0
protected

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

◆ $skmg_settings

ilSkillManagementSettings ilContainerSkillGUI::$skmg_settings
protected

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

◆ $tabs

ilTabsGUI ilContainerSkillGUI::$tabs
protected

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

Referenced by addTabs().


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