ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilContainerSkillGUI Class Reference

Skills for container (course/group) (top gui class) 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

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

Constructor & Destructor Documentation

◆ __construct()

ilContainerSkillGUI::__construct ( ilContainerGUI  $a_container_gui)

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

40 {
41 global $DIC;
42
43 $this->ctrl = $DIC->ctrl();
44 $this->tabs = $DIC->tabs();
45 $this->lng = $DIC->language();
46 $this->access = $DIC->access();
47
48 $this->container_gui = $a_container_gui;
49 /* @var $obj ilContainer */
50 $obj = $this->container_gui->getObject();
51 $this->container = $obj;
52 $this->ref_id = $this->container->getRefId();
53 $this->skmg_settings = new ilSkillManagementSettings();
54 }
global $DIC
Definition: shib_login.php:26

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

88 : void
89 {
93
94 if ($this->access->checkAccess("read", "", $this->ref_id)) {
96 "mem_profiles",
97 $lng->txt("cont_skill_profiles"),
98 $ctrl->getLinkTargetByClass("ilContSkillPresentationGUI", "")
99 );
101 "mem_records",
102 $lng->txt("cont_skill_records"),
103 $ctrl->getLinkTargetByClass("ilContSkillPresentationGUI", "showRecords")
104 );
105 }
106
107 if ($this->access->checkAccess("grade", "", $this->ref_id)) {
109 "members",
110 $lng->txt("cont_skill_members"),
111 $ctrl->getLinkTargetByClass("ilContSkillAdminGUI", "listMembers")
112 );
113 }
114
115 if ($this->access->checkAccess("write", "", $this->ref_id)) {
117 "competences",
118 $lng->txt("cont_skill_assigned_comp"),
119 $ctrl->getLinkTargetByClass("ilContSkillAdminGUI", "listCompetences")
120 );
121
122 if ($this->skmg_settings->getLocalAssignmentOfProfiles()
123 || $this->skmg_settings->getAllowLocalProfiles()) {
125 "profiles",
126 $lng->txt("cont_skill_assigned_profiles"),
127 $ctrl->getLinkTargetByClass("ilContSkillAdminGUI", "listProfiles")
128 );
129 }
130
132 "settings",
133 $lng->txt("settings"),
134 $ctrl->getLinkTargetByClass("ilContSkillAdminGUI", "settings")
135 );
136 }
137 }
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 56 of file class.ilContainerSkillGUI.php.

56 : void
57 {
59
60 $next_class = $this->ctrl->getNextClass($this);
61 $cmd = $this->ctrl->getCmd("showProfiles");
62
63 $this->addTabs();
64
65 switch ($next_class) {
66 case "ilcontskillpresentationgui":
67 if ($this->access->checkAccess("read", "", $this->ref_id)) {
68 $gui = new ilContSkillPresentationGUI($this->container_gui);
69 $ctrl->forwardCommand($gui);
70 }
71 break;
72
73 case "ilcontskilladmingui":
74 if ($this->access->checkAccess("write", "", $this->ref_id) || $this->access->checkAccess("grade", "", $this->ref_id)) {
75 $gui = new ilContSkillAdminGUI($this->container_gui);
76 $ctrl->forwardCommand($gui);
77 }
78 break;
79
80 default:
81 /*if (in_array($cmd, array("show")))
82 {
83 $this->$cmd();
84 }*/
85 }
86 }
Container skills administration.
Skill presentation for container (course/group)
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 35 of file class.ilContainerSkillGUI.php.

◆ $container

ilContainer ilContainerSkillGUI::$container
protected

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

◆ $container_gui

ilContainerGUI ilContainerSkillGUI::$container_gui
protected

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

◆ $ctrl

ilCtrl ilContainerSkillGUI::$ctrl
protected

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

Referenced by addTabs(), and executeCommand().

◆ $lng

ilLanguage ilContainerSkillGUI::$lng
protected

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

Referenced by addTabs().

◆ $ref_id

int ilContainerSkillGUI::$ref_id = 0
protected

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

◆ $skmg_settings

ilSkillManagementSettings ilContainerSkillGUI::$skmg_settings
protected

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

◆ $tabs

ilTabsGUI ilContainerSkillGUI::$tabs
protected

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

Referenced by addTabs().


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