ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilContSkillAdminGUI Class Reference

Container skills administration. More...

+ Collaboration diagram for ilContSkillAdminGUI:

Public Member Functions

 __construct (ilContainerGUI $a_container_gui)
 
 executeCommand ()
 
 listMembers ()
 
 assignCompetences ()
 
 initCompetenceAssignmentForm ()
 
 getPathString (int $a_skill_id, int $a_tref_id=0)
 
 saveCompetenceAssignment ()
 
 publishAssignments ()
 
 deassignCompetencesConfirm ()
 
 deassignCompetences ()
 
 listCompetences ()
 
 selectSkill ()
 
 saveSelectedSkill ()
 
 confirmRemoveSelectedSkill ()
 
 removeSelectedSkill ()
 
 listProfiles ()
 
 saveSelectedProfile ()
 
 confirmRemoveSelectedGlobalProfiles ()
 
 removeSelectedGlobalProfiles ()
 
 confirmRemoveSingleGlobalProfile ()
 
 removeSingleGlobalProfile ()
 
 confirmDeleteSelectedLocalProfiles ()
 
 deleteSelectedLocalProfiles ()
 
 confirmDeleteSingleLocalProfile ()
 
 deleteSingleLocalProfile ()
 
 settings ()
 
 initSettingsForm ()
 
 saveSettings ()
 

Protected Attributes

ILIAS Container InternalGUIService $gui
 
ilCtrl $ctrl
 
ilTabsGUI $tabs
 
ilLanguage $lng
 
ilGlobalTemplateInterface $tpl
 
ilContainerGUI $container_gui
 
ilContainer $container
 
ilSkillManagementSettings $skmg_settings
 
ilToolbarGUI $toolbar
 
ilAccessHandler $access
 
int $ref_id = 0
 
int $cont_member_role_id = 0
 
SkillTreeService $tree_service
 
SkillTreeAccess $tree_access_manager
 
SkillProfileService $profile_service
 
ContainerSkills ContainerSkillManager $cont_skill_manager
 
SkillUsageService $usage_service
 
array $params = []
 
ContainerSkills SkillContainerGUIRequest $container_gui_request
 
int $requested_usr_id = 0
 
array $requested_usr_ids = []
 
string $requested_selected_skill = ""
 
array $requested_combined_skill_ids = []
 
int $requested_selected_profile_id = 0
 
array $requested_profile_ids = []
 

Detailed Description

Container skills administration.

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

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

Constructor & Destructor Documentation

◆ __construct()

ilContSkillAdminGUI::__construct ( ilContainerGUI  $a_container_gui)

Definition at line 62 of file class.ilContSkillAdminGUI.php.

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

63  {
64  global $DIC;
65 
66  $this->ctrl = $DIC->ctrl();
67  $this->tabs = $DIC->tabs();
68  $this->lng = $DIC->language();
69  $this->tpl = $DIC["tpl"];
70  $this->toolbar = $DIC->toolbar();
71  $this->access = $DIC->access();
72 
73  $this->container_gui = $a_container_gui;
74  /* @var $obj ilContainer */
75  $obj = $this->container_gui->getObject();
76  $this->container = $obj;
77  $this->ref_id = $this->container->getRefId();
78  $this->cont_member_role_id = ilParticipants::getDefaultMemberRole($this->ref_id);
79 
80  $this->tree_service = $DIC->skills()->tree();
81  $this->tree_access_manager = $DIC->skills()->internal()->manager()->getTreeAccessManager($this->ref_id);
82  $this->profile_service = $DIC->skills()->profile();
83  $this->cont_skill_manager = $DIC->skills()->internalContainer()->manager()->getSkillManager(
84  $this->container->getId(),
85  $this->container->getRefId()
86  );
87  $this->usage_service = $DIC->skills()->usage();
88 
89  $this->skmg_settings = new ilSkillManagementSettings();
90  $this->container_gui_request = $DIC->skills()->internalContainer()->gui()->request();
91 
92  $this->ctrl->saveParameter($this, "profile_id");
93  $this->params = $this->ctrl->getParameterArray($this);
94 
95  $this->requested_usr_id = $this->container_gui_request->getUserId();
96  $this->requested_usr_ids = $this->container_gui_request->getUserIds();
97  $this->requested_selected_skill = $this->container_gui_request->getSelectedSkill();
98  $this->requested_combined_skill_ids = $this->container_gui_request->getCombinedSkillIds();
99  $this->requested_selected_profile_id = $this->container_gui_request->getSelectedProfileId();
100  $this->requested_profile_ids = $this->container_gui_request->getProfileIds();
101 
102  $this->lng->loadLanguageModule("skmg");
103  $this->lng->loadLanguageModule("error");
104  $this->gui = $DIC->container()->internal()->gui();
105  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getDefaultMemberRole(int $a_ref_id)
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

Member Function Documentation

◆ assignCompetences()

ilContSkillAdminGUI::assignCompetences ( )

Definition at line 160 of file class.ilContSkillAdminGUI.php.

References $ctrl, $tabs, $tpl, ilTabsGUI\activateSubTab(), initCompetenceAssignmentForm(), ilCtrl\saveParameter(), and ilGlobalTemplateInterface\setContent().

160  : void
161  {
162  $tpl = $this->tpl;
163  $tabs = $this->tabs;
164  $ctrl = $this->ctrl;
165 
166  $ctrl->saveParameter($this, "usr_id");
167  $tabs->activateSubTab("members");
168 
169  $form = $this->initCompetenceAssignmentForm();
170  $tpl->setContent($form->getHTML());
171  }
activateSubTab(string $a_id)
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
saveParameter(object $a_gui_obj, $a_parameter)
+ Here is the call graph for this function:

◆ confirmDeleteSelectedLocalProfiles()

ilContSkillAdminGUI::confirmDeleteSelectedLocalProfiles ( )

Definition at line 623 of file class.ilContSkillAdminGUI.php.

References $ctrl, $lng, $tabs, $tpl, ilTabsGUI\activateSubTab(), ilCtrl\getFormAction(), ilCtrl\redirect(), ilGlobalTemplateInterface\setContent(), and ilLanguage\txt().

623  : void
624  {
625  $lng = $this->lng;
626  $ctrl = $this->ctrl;
627  $tpl = $this->tpl;
628  $tabs = $this->tabs;
629 
630  $tabs->activateSubTab("profiles");
631 
632  if (empty($this->requested_profile_ids)) {
633  $this->tpl->setOnScreenMessage('info', $lng->txt("no_checkbox"), true);
634  $ctrl->redirect($this, "listProfiles");
635  } else {
636  $cgui = new ilConfirmationGUI();
637  $cgui->setFormAction($ctrl->getFormAction($this));
638  $cgui->setHeaderText($lng->txt("cont_skill_really_delete_profiles_from_list"));
639  $cgui->setCancel($lng->txt("cancel"), "listProfiles");
640  $cgui->setConfirm($lng->txt("delete"), "deleteSelectedLocalProfiles");
641 
642  foreach ($this->requested_profile_ids as $i) {
643  if (!($this->profile_service->lookupProfileRefId($i) > 0)) {
644  $this->tpl->setOnScreenMessage('info', $lng->txt("cont_skill_deletion_not_possible"), true);
645  $ctrl->redirect($this, "listProfiles");
646  }
647  $cgui->addItem("id[]", (string) $i, $this->profile_service->lookupProfileTitle($i));
648  }
649 
650  $tpl->setContent($cgui->getHTML());
651  }
652  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
activateSubTab(string $a_id)
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
getFormAction(object $a_gui_obj, string $a_fallback_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
+ Here is the call graph for this function:

◆ confirmDeleteSingleLocalProfile()

ilContSkillAdminGUI::confirmDeleteSingleLocalProfile ( )

Definition at line 671 of file class.ilContSkillAdminGUI.php.

References $ctrl, $lng, $tabs, $tpl, ilTabsGUI\activateSubTab(), ilCtrl\getFormAction(), ILIAS\Repository\int(), ilCtrl\redirect(), ilGlobalTemplateInterface\setContent(), and ilLanguage\txt().

671  : void
672  {
673  $lng = $this->lng;
674  $ctrl = $this->ctrl;
675  $tpl = $this->tpl;
676  $tabs = $this->tabs;
677 
678  $tabs->activateSubTab("profiles");
679 
680  $profile_id = (int) $this->params["profile_id"];
681 
682  if (!($profile_id > 0)) {
683  $this->tpl->setOnScreenMessage('failure', $lng->txt("error_sry_error"), true);
684  $ctrl->redirect($this, "listProfiles");
685  } else {
686  $cgui = new ilConfirmationGUI();
687  $cgui->setFormAction($ctrl->getFormAction($this));
688  $cgui->setHeaderText($lng->txt("cont_skill_really_delete_profile_from_list"));
689  $cgui->setCancel($lng->txt("cancel"), "listProfiles");
690  $cgui->setConfirm($lng->txt("delete"), "deleteSingleLocalProfile");
691  $cgui->addItem("", (string) $profile_id, $this->profile_service->lookupProfileTitle($profile_id));
692 
693  $tpl->setContent($cgui->getHTML());
694  }
695  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
activateSubTab(string $a_id)
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
getFormAction(object $a_gui_obj, string $a_fallback_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
+ Here is the call graph for this function:

◆ confirmRemoveSelectedGlobalProfiles()

ilContSkillAdminGUI::confirmRemoveSelectedGlobalProfiles ( )

Definition at line 537 of file class.ilContSkillAdminGUI.php.

References $ctrl, $lng, $tabs, $tpl, ilTabsGUI\activateSubTab(), ilCtrl\getFormAction(), ilCtrl\redirect(), ilGlobalTemplateInterface\setContent(), and ilLanguage\txt().

537  : void
538  {
539  $lng = $this->lng;
540  $ctrl = $this->ctrl;
541  $tpl = $this->tpl;
542  $tabs = $this->tabs;
543 
544  $tabs->activateSubTab("profiles");
545 
546  if (empty($this->requested_profile_ids)) {
547  $this->tpl->setOnScreenMessage('info', $lng->txt("no_checkbox"), true);
548  $ctrl->redirect($this, "listProfiles");
549  } else {
550  $cgui = new ilConfirmationGUI();
551  $cgui->setFormAction($ctrl->getFormAction($this));
552  $cgui->setHeaderText($lng->txt("cont_skill_really_remove_profiles_from_list"));
553  $cgui->setCancel($lng->txt("cancel"), "listProfiles");
554  $cgui->setConfirm($lng->txt("remove"), "removeSelectedGlobalProfiles");
555 
556  foreach ($this->requested_profile_ids as $i) {
557  if ($this->profile_service->lookupProfileRefId($i) > 0) {
558  $this->tpl->setOnScreenMessage('info', $lng->txt("cont_skill_removal_not_possible"), true);
559  $ctrl->redirect($this, "listProfiles");
560  }
561  $cgui->addItem("id[]", (string) $i, $this->profile_service->lookupProfileTitle($i));
562  }
563 
564  $tpl->setContent($cgui->getHTML());
565  }
566  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
activateSubTab(string $a_id)
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
getFormAction(object $a_gui_obj, string $a_fallback_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
+ Here is the call graph for this function:

◆ confirmRemoveSelectedSkill()

ilContSkillAdminGUI::confirmRemoveSelectedSkill ( )

Definition at line 407 of file class.ilContSkillAdminGUI.php.

References $ctrl, $lng, $tabs, $tpl, ilSkillTreeNode\_lookupTitle(), ilTabsGUI\activateSubTab(), ilCtrl\getFormAction(), ilCtrl\redirect(), ilGlobalTemplateInterface\setContent(), and ilLanguage\txt().

407  : void
408  {
409  $lng = $this->lng;
410  $ctrl = $this->ctrl;
411  $tpl = $this->tpl;
412  $tabs = $this->tabs;
413 
414  $tabs->activateSubTab("competences");
415 
416  if (empty($this->requested_combined_skill_ids)) {
417  $this->tpl->setOnScreenMessage('info', $lng->txt("no_checkbox"), true);
418  $ctrl->redirect($this, "listCompetences");
419  } else {
420  $cgui = new ilConfirmationGUI();
421  $cgui->setFormAction($ctrl->getFormAction($this));
422  $cgui->setHeaderText($lng->txt("cont_really_remove_skill_from_course"));
423  $cgui->setCancel($lng->txt("cancel"), "listCompetences");
424  $cgui->setConfirm($lng->txt("remove"), "removeSelectedSkill");
425 
426  foreach ($this->requested_combined_skill_ids as $i) {
427  $s = explode(":", $i);
428  $cgui->addItem("id[]", (string) $i, ilBasicSkill::_lookupTitle((int) $s[0], (int) $s[1]));
429  }
430 
431  $tpl->setContent($cgui->getHTML());
432  }
433  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
activateSubTab(string $a_id)
static _lookupTitle(int $a_obj_id, int $a_tref_id=0)
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
getFormAction(object $a_gui_obj, string $a_fallback_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
+ Here is the call graph for this function:

◆ confirmRemoveSingleGlobalProfile()

ilContSkillAdminGUI::confirmRemoveSingleGlobalProfile ( )

Definition at line 582 of file class.ilContSkillAdminGUI.php.

References $ctrl, $lng, $tabs, $tpl, ilTabsGUI\activateSubTab(), ilCtrl\getFormAction(), ILIAS\Repository\int(), ilCtrl\redirect(), ilGlobalTemplateInterface\setContent(), and ilLanguage\txt().

582  : void
583  {
584  $lng = $this->lng;
585  $ctrl = $this->ctrl;
586  $tpl = $this->tpl;
587  $tabs = $this->tabs;
588 
589  $tabs->activateSubTab("profiles");
590 
591  $profile_id = (int) $this->params["profile_id"];
592 
593  if (!($profile_id > 0)) {
594  $this->tpl->setOnScreenMessage('failure', $lng->txt("error_sry_error"), true);
595  $ctrl->redirect($this, "listProfiles");
596  } else {
597  $cgui = new ilConfirmationGUI();
598  $cgui->setFormAction($ctrl->getFormAction($this));
599  $cgui->setHeaderText($lng->txt("cont_skill_really_remove_profile_from_list"));
600  $cgui->setCancel($lng->txt("cancel"), "listProfiles");
601  $cgui->setConfirm($lng->txt("remove"), "removeSingleGlobalProfile");
602  $cgui->addItem("", (string) $profile_id, $this->profile_service->lookupProfileTitle($profile_id));
603 
604  $tpl->setContent($cgui->getHTML());
605  }
606  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
activateSubTab(string $a_id)
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
getFormAction(object $a_gui_obj, string $a_fallback_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
+ Here is the call graph for this function:

◆ deassignCompetences()

ilContSkillAdminGUI::deassignCompetences ( )

Definition at line 338 of file class.ilContSkillAdminGUI.php.

References $ctrl, $lng, ilCtrl\redirect(), and ilLanguage\txt().

338  : void
339  {
340  $ctrl = $this->ctrl;
341  $lng = $this->lng;
342 
343  foreach ($this->requested_usr_ids as $user_id) {
344  $this->cont_skill_manager->removeAllMemberSkillsFromContainer($user_id);
345  }
346 
347  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
348  $ctrl->redirect($this, "listMembers");
349  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
+ Here is the call graph for this function:

◆ deassignCompetencesConfirm()

ilContSkillAdminGUI::deassignCompetencesConfirm ( )

Definition at line 305 of file class.ilContSkillAdminGUI.php.

References $ctrl, $lng, $requested_usr_id, $requested_usr_ids, $tabs, $tpl, ilTabsGUI\activateSubTab(), ilCtrl\getFormAction(), ilUserUtil\getNamePresentation(), ilCtrl\redirect(), ilGlobalTemplateInterface\setContent(), and ilLanguage\txt().

305  : void
306  {
307  $ctrl = $this->ctrl;
308  $lng = $this->lng;
309  $tpl = $this->tpl;
310  $tabs = $this->tabs;
311 
312  $tabs->activateSubTab("members");
313 
314  $user_ids = $this->requested_usr_ids;
315  if (empty($this->requested_usr_ids) && $this->requested_usr_id > 0) {
316  $user_ids[] = $this->requested_usr_id;
317  }
318 
319  if (!is_array($user_ids) || count($user_ids) === 0) {
320  $this->tpl->setOnScreenMessage('info', $lng->txt("no_checkbox"), true);
321  $ctrl->redirect($this, "listMembers");
322  } else {
323  $cgui = new ilConfirmationGUI();
324  $cgui->setFormAction($ctrl->getFormAction($this));
325  $cgui->setHeaderText($lng->txt("cont_really_deassign_skills"));
326  $cgui->setCancel($lng->txt("cancel"), "listMembers");
327  $cgui->setConfirm($lng->txt("cont_deassign_competence"), "deassignCompetences");
328 
329  foreach ($user_ids as $i) {
330  $name = ilUserUtil::getNamePresentation($i, false, false, "", true);
331  $cgui->addItem("usr_ids[]", (string) $i, $name);
332  }
333 
334  $tpl->setContent($cgui->getHTML());
335  }
336  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
activateSubTab(string $a_id)
ilGlobalTemplateInterface $tpl
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link='', bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path='ilpublicuserprofilegui')
Default behaviour is:
setContent(string $a_html)
Sets content for standard template.
getFormAction(object $a_gui_obj, string $a_fallback_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
+ Here is the call graph for this function:

◆ deleteSelectedLocalProfiles()

ilContSkillAdminGUI::deleteSelectedLocalProfiles ( )

Definition at line 654 of file class.ilContSkillAdminGUI.php.

References $ctrl, $id, $lng, ilCtrl\redirect(), and ilLanguage\txt().

654  : void
655  {
656  $lng = $this->lng;
657  $ctrl = $this->ctrl;
658 
659  if (!empty($this->requested_profile_ids)) {
660  foreach ($this->requested_profile_ids as $id) {
661  if ($this->profile_service->lookupProfileRefId($id) > 0) {
662  $this->profile_service->deleteProfile($id);
663  }
664  }
665  }
666  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
667 
668  $ctrl->redirect($this, "listProfiles");
669  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the call graph for this function:

◆ deleteSingleLocalProfile()

ilContSkillAdminGUI::deleteSingleLocalProfile ( )

Definition at line 697 of file class.ilContSkillAdminGUI.php.

References $ctrl, $lng, ILIAS\Repository\int(), ilCtrl\redirect(), and ilLanguage\txt().

697  : void
698  {
699  $lng = $this->lng;
700  $ctrl = $this->ctrl;
701 
702  $profile_id = (int) $this->params["profile_id"];
703 
704  if ($profile_id > 0) {
705  $this->profile_service->deleteProfile($profile_id);
706  }
707  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
708 
709  $ctrl->redirect($this, "listProfiles");
710  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
+ Here is the call graph for this function:

◆ executeCommand()

ilContSkillAdminGUI::executeCommand ( )

Definition at line 107 of file class.ilContSkillAdminGUI.php.

References ILIAS\Repository\access(), and ILIAS\Repository\ctrl().

107  : void
108  {
109  $next_class = $this->ctrl->getNextClass($this);
110  $cmd = $this->ctrl->getCmd("listMembers");
111 
112  switch ($next_class) {
113  case "ilskillprofilegui":
114  $profile_gui = new ilSkillProfileGUI($this->tree_access_manager);
115  $this->ctrl->setReturn($this, "listProfiles");
116  $ret = $this->ctrl->forwardCommand($profile_gui);
117  break;
118  case "ilskillprofileuploadhandlergui":
119  $skprof_upl_gui = new ilSkillProfileUploadHandlerGUI();
120  $ret = $this->ctrl->forwardCommand($skprof_upl_gui);
121  break;
122  default:
123  if (
124  ($this->access->checkAccess("write", "", $this->ref_id) &&
125  in_array($cmd, [
126  "listCompetences", "settings", "saveSettings", "selectSkill",
127  "saveSelectedSkill", "confirmRemoveSelectedSkill", "removeSelectedSkill",
128  "listProfiles", "saveSelectedProfile", "confirmRemoveSelectedGlobalProfiles",
129  "removeSelectedGlobalProfiles", "confirmRemoveSingleGlobalProfile", "removeSingleGlobalProfile",
130  "confirmDeleteSingleLocalProfile", "deleteSingleLocalProfile",
131  "confirmDeleteSelectedLocalProfiles", "deleteSelectedLocalProfiles"
132  ]))
133  ||
134  ($this->access->checkAccess("grade", "", $this->ref_id) &&
135  in_array($cmd, [
136  "listMembers", "assignCompetences",
137  "saveCompetenceAssignment", "publishAssignments", "deassignCompetencesConfirm", "deassignCompetences"
138  ]))
139  ) {
140  $this->$cmd();
141  }
142  }
143  }
Skill profile GUI class.
Class ilSkillProfileUploadHandlerGUI.
+ Here is the call graph for this function:

◆ getPathString()

ilContSkillAdminGUI::getPathString ( int  $a_skill_id,
int  $a_tref_id = 0 
)

Definition at line 229 of file class.ilContSkillAdminGUI.php.

References $path.

Referenced by initCompetenceAssignmentForm().

229  : string
230  {
231  $path = $this->tree_service->getSkillTreePath($a_skill_id, $a_tref_id);
232  $titles = [];
233  foreach ($path as $v) {
234  if ($v["type"] !== "skrt" && !($v["skill_id"] == $a_skill_id && $v["tref_id"] == $a_tref_id)) {
235  $titles[] = $v["title"];
236  }
237  }
238 
239  return implode(" > ", $titles);
240  }
$path
Definition: ltiservices.php:32
+ Here is the caller graph for this function:

◆ initCompetenceAssignmentForm()

ilContSkillAdminGUI::initCompetenceAssignmentForm ( )

Definition at line 173 of file class.ilContSkillAdminGUI.php.

References $ctrl, $lng, $tpl, ilObjUser\_lookupName(), ilSkillTreeNode\_lookupTitle(), ILIAS\Repository\ctrl(), getPathString(), ILIAS\Repository\lng(), ilCtrl\redirect(), ilGlobalTemplateInterface\setOnScreenMessage(), ilSelectInputGUI\setOptions(), and ilLanguage\txt().

Referenced by assignCompetences(), and saveCompetenceAssignment().

174  {
175  $tpl = $this->tpl;
176  $ctrl = $this->ctrl;
177  $lng = $this->lng;
178 
179  $form = new ilPropertyFormGUI();
180 
181  // user name
182  $name = ilObjUser::_lookupName($this->requested_usr_id);
183  $ne = new ilNonEditableValueGUI($this->lng->txt("obj_user"), "");
184  $ne->setValue($name["lastname"] . ", " . $name["firstname"] . " [" . $name["login"] . "]");
185  $form->addItem($ne);
186 
187  if (empty($this->cont_skill_manager->getSkillsForContainerOrdered())) {
188  $tpl->setOnScreenMessage('info', $lng->txt("cont_skill_no_skills_selected"), true);
189  $ctrl->redirect($this, "listMembers");
190  }
191 
192  foreach ($this->cont_skill_manager->getSkillsForContainerOrdered() as $sk) {
193  $skill = new ilBasicSkill($sk->getBaseSkillId());
194 
195  // skill level options
196  $options = [
197  "-1" => $this->lng->txt("cont_skill_do_not_set"),
198  ];
199  foreach ($skill->getLevelData() as $l) {
200  $options[$l["id"]] = $l["title"];
201  }
202  $si = new ilSelectInputGUI(
203  ilBasicSkill::_lookupTitle($sk->getBaseSkillId(), $sk->getTrefId()),
204  "skill_" . $sk->getBaseSkillId() . "_" . $sk->getTrefId()
205  );
206  $si->setOptions($options);
207  $si->setInfo($this->getPathString($sk->getBaseSkillId(), $sk->getTrefId()));
208  $mem_level = $this->cont_skill_manager->getMemberSkillLevel(
209  $this->requested_usr_id,
210  $sk->getBaseSkillId(),
211  $sk->getTrefId()
212  );
213  if ($mem_level) {
214  $si->setValue($mem_level);
215  }
216  $form->addItem($si);
217  }
218 
219  // save and cancel commands
220  $form->addCommandButton("saveCompetenceAssignment", $this->lng->txt("save"));
221  $form->addCommandButton("listMembers", $this->lng->txt("cancel"));
222 
223  $form->setTitle($this->lng->txt("cont_assign_skills"));
224  $form->setFormAction($this->ctrl->getFormAction($this));
225 
226  return $form;
227  }
This class represents a selection list property in a property form.
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
setOnScreenMessage(string $type, string $a_txt, bool $a_keep=false)
Set a message to be displayed to the user.
static _lookupTitle(int $a_obj_id, int $a_tref_id=0)
static _lookupName(int $a_user_id)
lookup user name
ilGlobalTemplateInterface $tpl
setOptions(array $a_options)
Basic Skill.
getPathString(int $a_skill_id, int $a_tref_id=0)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initSettingsForm()

ilContSkillAdminGUI::initSettingsForm ( )

Definition at line 727 of file class.ilContSkillAdminGUI.php.

References $ctrl, $lng, ilContainer\_lookupContainerSetting(), ilCtrl\getFormAction(), ilRadioOption\setValue(), and ilLanguage\txt().

Referenced by saveSettings(), and settings().

728  {
729  $lng = $this->lng;
730  $ctrl = $this->ctrl;
731 
732  $form = new ilPropertyFormGUI();
733 
734  // publish
735  $radg = new ilRadioGroupInputGUI($lng->txt("cont_skill_publish"), "cont_skill_publish");
736  $op1 = new ilRadioOption($lng->txt("cont_skill_publish_auto"), '0', $lng->txt("cont_skill_publish_auto_info"));
737  $radg->addOption($op1);
738  $op2 = new ilRadioOption($lng->txt("cont_skill_publish_manual"), '1', $lng->txt("cont_skill_publish_manual_info"));
739  $radg->addOption($op2);
740  $form->addItem($radg);
741  $radg->setValue(ilContainer::_lookupContainerSetting($this->container->getId(), "cont_skill_publish", '0'));
742 
743  $form->addCommandButton("saveSettings", $lng->txt("save"));
744 
745  $form->setTitle($lng->txt("settings"));
746  $form->setFormAction($ctrl->getFormAction($this));
747 
748  return $form;
749  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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...
static _lookupContainerSetting(int $a_id, string $a_keyword, string $a_default_value=null)
This class represents a property in a property form.
setValue(string $a_value)
getFormAction(object $a_gui_obj, string $a_fallback_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ listCompetences()

ilContSkillAdminGUI::listCompetences ( )

Definition at line 354 of file class.ilContSkillAdminGUI.php.

References $ctrl, $lng, $tabs, $toolbar, $tpl, ilTabsGUI\activateSubTab(), ilToolbarGUI\addButton(), ilCtrl\getLinkTarget(), ilGlobalTemplateInterface\setContent(), and ilLanguage\txt().

354  : void
355  {
356  $tpl = $this->tpl;
357  $tabs = $this->tabs;
359  $ctrl = $this->ctrl;
360  $lng = $this->lng;
361 
362  $tabs->activateSubTab("competences");
363 
365  $lng->txt("cont_add_skill"),
366  $ctrl->getLinkTarget($this, "selectSkill")
367  );
368 
369  // table
370  $tab = new ilContSkillTableGUI(
371  $this,
372  "listCompetences",
373  $this->container
374  );
375 
376  $tpl->setContent($tab->getHTML());
377  }
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...
activateSubTab(string $a_id)
TableGUI class for competences in containers.
ilGlobalTemplateInterface $tpl
addButton(string $a_txt, string $a_cmd, string $a_target="", ?int $a_acc_key=null, string $a_additional_attrs='', string $a_id="", string $a_class='submit')
setContent(string $a_html)
Sets content for standard template.
getLinkTarget(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
+ Here is the call graph for this function:

◆ listMembers()

ilContSkillAdminGUI::listMembers ( )

Definition at line 147 of file class.ilContSkillAdminGUI.php.

References $tabs, $tpl, ilTabsGUI\activateSubTab(), and ilGlobalTemplateInterface\setContent().

147  : void
148  {
149  $tpl = $this->tpl;
150  $tabs = $this->tabs;
151 
152  $tabs->activateSubTab("members");
153 
154  // table
155  $tab = new ilContSkillMemberTableGUI($this, "listMembers", $this->container);
156 
157  $tpl->setContent($tab->getHTML());
158  }
activateSubTab(string $a_id)
ilGlobalTemplateInterface $tpl
TableGUI class for container members / skill assignments.
setContent(string $a_html)
Sets content for standard template.
+ Here is the call graph for this function:

◆ listProfiles()

ilContSkillAdminGUI::listProfiles ( )

Definition at line 455 of file class.ilContSkillAdminGUI.php.

References $ctrl, $lng, $tabs, $toolbar, $tpl, ilTabsGUI\activateSubTab(), ilToolbarGUI\addInputItem(), ilToolbarGUI\addSeparator(), ilCtrl\getFormAction(), ilCtrl\getLinkTargetByClass(), ILIAS\Repository\lng(), ilGlobalTemplateInterface\setContent(), ilToolbarGUI\setFormAction(), ilSelectInputGUI\setOptions(), and ilLanguage\txt().

455  : void
456  {
457  $tpl = $this->tpl;
458  $tabs = $this->tabs;
460  $ctrl = $this->ctrl;
461  $lng = $this->lng;
462 
463  $tabs->activateSubTab("profiles");
464 
465  $options = [];
466  $options[0] = $lng->txt("please_select");
467 
468  $selectable_profiles = [];
469  $all_profiles = $this->profile_service->getAllGlobalProfiles();
470  $selected_profiles = $this->profile_service->getGlobalProfilesOfRole($this->cont_member_role_id);
471  foreach ($all_profiles as $profile) {
472  if (!array_key_exists($profile->getId(), $selected_profiles)) {
473  $selectable_profiles[$profile->getId()] = $profile;
474  }
475  }
476 
477  foreach ($selectable_profiles as $profile) {
478  $tree = $this->tree_service->getObjSkillTreeById($profile->getSkillTreeId());
479  $options[$profile->getId()] = $tree->getTitle() . ": " . $profile->getTitle();
480  }
481 
482  if ($this->skmg_settings->getLocalAssignmentOfProfiles()) {
483  $select = new ilSelectInputGUI($lng->txt("skmg_profile"), "p_id");
484  $select->setOptions($options);
485  $select->setValue(0);
486  $toolbar->addInputItem($select, true);
487 
488  $this->gui->button(
489  $this->lng->txt("cont_add_global_profile"),
490  "saveSelectedProfile"
491  )->submit()->toToolbar();
492  }
493 
494  if ($this->skmg_settings->getLocalAssignmentOfProfiles()
495  && $this->skmg_settings->getAllowLocalProfiles()) {
497  }
498 
499  if ($this->skmg_settings->getAllowLocalProfiles()) {
500  $this->gui->link(
501  $this->lng->txt("cont_add_local_profile"),
502  $ctrl->getLinkTargetByClass("ilskillprofilegui", "createLocal")
503  )->emphasised()->toToolbar();
504  }
505 
507 
508  // table
509  $tab = new ilContProfileTableGUI(
510  $this,
511  "listProfiles",
512  $this->container->getRefId()
513  );
514 
515  $tpl->setContent($tab->getHTML());
516  }
getLinkTargetByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
This class represents a selection list property in a property form.
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...
setFormAction(string $a_val, bool $a_multipart=false, string $a_target="")
Set form action (if form action is set, toolbar is wrapped into form tags)
activateSubTab(string $a_id)
ilGlobalTemplateInterface $tpl
setOptions(array $a_options)
TableGUI class for competence profiles in containers.
setContent(string $a_html)
Sets content for standard template.
getFormAction(object $a_gui_obj, string $a_fallback_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
addInputItem(ilToolbarItem $a_item, bool $a_output_label=false)
+ Here is the call graph for this function:

◆ publishAssignments()

ilContSkillAdminGUI::publishAssignments ( )

Definition at line 276 of file class.ilContSkillAdminGUI.php.

References $ctrl, $id, $lng, $requested_usr_id, $requested_usr_ids, ilUserUtil\getNamePresentation(), ilCtrl\redirect(), and ilLanguage\txt().

276  : void
277  {
278  $ctrl = $this->ctrl;
279  $lng = $this->lng;
280 
281  $user_ids = $this->requested_usr_ids;
282  if (empty($this->requested_usr_ids) && $this->requested_usr_id > 0) {
283  $user_ids[] = $this->requested_usr_id;
284  }
285 
286  $not_changed = [];
287  foreach ($user_ids as $user_id) {
288  if (!$this->cont_skill_manager->publishMemberSkills($user_id)) {
289  $not_changed[] = $user_id;
290  }
291  }
292 
293  if (count($not_changed) === 0) {
294  $this->tpl->setOnScreenMessage('success', $lng->txt("cont_skll_published"), true);
295  } else {
296  $names = array_map(static function (int $id) {
297  return ilUserUtil::getNamePresentation($id, false, false, "", true);
298  }, $not_changed);
299  $this->tpl->setOnScreenMessage('info', $lng->txt("cont_skll_published_some_not") . " (" . implode("; ", $names) . ")", true);
300  }
301 
302  $ctrl->redirect($this, "listMembers");
303  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link='', bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path='ilpublicuserprofilegui')
Default behaviour is:
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the call graph for this function:

◆ removeSelectedGlobalProfiles()

ilContSkillAdminGUI::removeSelectedGlobalProfiles ( )

Definition at line 568 of file class.ilContSkillAdminGUI.php.

References $ctrl, $id, $lng, ilCtrl\redirect(), and ilLanguage\txt().

568  : void
569  {
570  $lng = $this->lng;
571  $ctrl = $this->ctrl;
572 
573  foreach ($this->requested_profile_ids as $id) {
574  $this->profile_service->removeRoleFromProfile($id, $this->cont_member_role_id);
575  }
576 
577  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
578 
579  $ctrl->redirect($this, "listProfiles");
580  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the call graph for this function:

◆ removeSelectedSkill()

ilContSkillAdminGUI::removeSelectedSkill ( )

Definition at line 435 of file class.ilContSkillAdminGUI.php.

References $ctrl, $id, $lng, ILIAS\Repository\int(), ilCtrl\redirect(), and ilLanguage\txt().

435  : void
436  {
437  $lng = $this->lng;
438  $ctrl = $this->ctrl;
439 
440  if (!empty($this->requested_combined_skill_ids)) {
441  foreach ($this->requested_combined_skill_ids as $id) {
442  $s = explode(":", $id);
443  $this->cont_skill_manager->removeSkillFromContainer((int) $s[0], (int) $s[1]);
444  $this->usage_service->removeUsage($this->container->getId(), (int) $s[0], (int) $s[1]);
445  }
446  }
447  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
448 
449  $ctrl->redirect($this, "listCompetences");
450  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the call graph for this function:

◆ removeSingleGlobalProfile()

ilContSkillAdminGUI::removeSingleGlobalProfile ( )

Definition at line 608 of file class.ilContSkillAdminGUI.php.

References $ctrl, $lng, ILIAS\Repository\int(), ilCtrl\redirect(), and ilLanguage\txt().

608  : void
609  {
610  $lng = $this->lng;
611  $ctrl = $this->ctrl;
612 
613  $profile_id = (int) $this->params["profile_id"];
614 
615  if ($profile_id > 0) {
616  $this->profile_service->removeRoleFromProfile($profile_id, $this->cont_member_role_id);
617  }
618  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
619 
620  $ctrl->redirect($this, "listProfiles");
621  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
+ Here is the call graph for this function:

◆ saveCompetenceAssignment()

ilContSkillAdminGUI::saveCompetenceAssignment ( )

Definition at line 242 of file class.ilContSkillAdminGUI.php.

References $ctrl, $lng, ilContainer\_lookupContainerSetting(), initCompetenceAssignmentForm(), ILIAS\Repository\int(), ilCtrl\redirect(), and ilLanguage\txt().

242  : void
243  {
244  $ctrl = $this->ctrl;
245  $lng = $this->lng;
246 
247  $form = $this->initCompetenceAssignmentForm();
248  $form->checkInput();
249 
250  foreach ($this->cont_skill_manager->getSkillsForContainer() as $sk) {
251  $l = (int) $form->getInput("skill_" . $sk->getBaseSkillId() . "_" . $sk->getTrefId());
252  if ($l === -1) {
253  $this->cont_skill_manager->removeMemberSkillFromContainer(
254  $this->requested_usr_id,
255  $sk->getBaseSkillId(),
256  $sk->getTrefId()
257  );
258  } else {
259  $this->cont_skill_manager->addMemberSkillForContainer(
260  $this->requested_usr_id,
261  $sk->getBaseSkillId(),
262  $sk->getTrefId(),
263  $l
264  );
265  }
266  }
267 
268  if (!ilContainer::_lookupContainerSetting($this->container->getId(), "cont_skill_publish", '0')) {
269  $this->cont_skill_manager->publishMemberSkills($this->requested_usr_id);
270  }
271 
272  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
273  $ctrl->redirect($this, "listMembers");
274  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
static _lookupContainerSetting(int $a_id, string $a_keyword, string $a_default_value=null)
+ Here is the call graph for this function:

◆ saveSelectedProfile()

ilContSkillAdminGUI::saveSelectedProfile ( )

Definition at line 518 of file class.ilContSkillAdminGUI.php.

References $ctrl, $lng, $requested_selected_profile_id, ilCtrl\redirect(), and ilLanguage\txt().

518  : void
519  {
520  $lng = $this->lng;
521  $ctrl = $this->ctrl;
522 
524 
525  if (!($profile_id > 0)) {
526  $this->tpl->setOnScreenMessage('info', $lng->txt("cont_skill_no_profile_selected"), true);
527  $ctrl->redirect($this, "listProfiles");
528  }
529 
530  $this->profile_service->addRoleToProfile($profile_id, $this->cont_member_role_id);
531 
532  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
533 
534  $ctrl->redirect($this, "listProfiles");
535  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
+ Here is the call graph for this function:

◆ saveSelectedSkill()

ilContSkillAdminGUI::saveSelectedSkill ( )

Definition at line 392 of file class.ilContSkillAdminGUI.php.

References $ctrl, $lng, ILIAS\Repository\int(), ilCtrl\redirect(), and ilLanguage\txt().

392  : void
393  {
394  $lng = $this->lng;
395  $ctrl = $this->ctrl;
396 
397  $s = explode(":", ($this->requested_selected_skill));
398 
399  $this->cont_skill_manager->addSkillForContainer((int) $s[0], (int) $s[1]);
400  $this->usage_service->addUsage($this->container->getId(), (int) $s[0], (int) $s[1]);
401 
402  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
403 
404  $ctrl->redirect($this, "listCompetences");
405  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
+ Here is the call graph for this function:

◆ saveSettings()

ilContSkillAdminGUI::saveSettings ( )

Definition at line 751 of file class.ilContSkillAdminGUI.php.

References $ctrl, $lng, ilContainer\_writeContainerSetting(), initSettingsForm(), ilCtrl\redirect(), and ilLanguage\txt().

751  : void
752  {
753  $lng = $this->lng;
754  $ctrl = $this->ctrl;
755 
756  $form = $this->initSettingsForm();
757  $form->checkInput();
758  ilContainer::_writeContainerSetting($this->container->getId(), "cont_skill_publish", $form->getInput("cont_skill_publish"));
759 
760  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
761 
762  $ctrl->redirect($this, "settings");
763  }
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
static _writeContainerSetting(int $a_id, string $a_keyword, string $a_value)
+ Here is the call graph for this function:

◆ selectSkill()

ilContSkillAdminGUI::selectSkill ( )

Definition at line 379 of file class.ilContSkillAdminGUI.php.

References $tabs, $tpl, ilTabsGUI\activateSubTab(), and ilGlobalTemplateInterface\setContent().

379  : void
380  {
381  $tpl = $this->tpl;
382  $tabs = $this->tabs;
383 
384  $tabs->activateSubTab("competences");
385 
386  $sel = new ilSkillSelectorGUI($this, "selectSkill", $this, "saveSelectedSkill");
387  if (!$sel->handleCommand()) {
388  $tpl->setContent($sel->getHTML());
389  }
390  }
activateSubTab(string $a_id)
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
Explorer class that works on tree objects (Services/Tree)
+ Here is the call graph for this function:

◆ settings()

ilContSkillAdminGUI::settings ( )

Definition at line 715 of file class.ilContSkillAdminGUI.php.

References $tabs, $tpl, ilTabsGUI\activateSubTab(), initSettingsForm(), and ilGlobalTemplateInterface\setContent().

715  : void
716  {
717  $tpl = $this->tpl;
718  $tabs = $this->tabs;
719 
720  $tabs->activateSubTab("settings");
721 
722  $form = $this->initSettingsForm();
723 
724  $tpl->setContent($form->getHTML());
725  }
activateSubTab(string $a_id)
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
+ Here is the call graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilContSkillAdminGUI::$access
protected

Definition at line 45 of file class.ilContSkillAdminGUI.php.

◆ $cont_member_role_id

int ilContSkillAdminGUI::$cont_member_role_id = 0
protected

Definition at line 47 of file class.ilContSkillAdminGUI.php.

◆ $cont_skill_manager

ContainerSkills ContainerSkillManager ilContSkillAdminGUI::$cont_skill_manager
protected

Definition at line 51 of file class.ilContSkillAdminGUI.php.

◆ $container

ilContainer ilContSkillAdminGUI::$container
protected

Definition at line 42 of file class.ilContSkillAdminGUI.php.

◆ $container_gui

ilContainerGUI ilContSkillAdminGUI::$container_gui
protected

Definition at line 41 of file class.ilContSkillAdminGUI.php.

◆ $container_gui_request

ContainerSkills SkillContainerGUIRequest ilContSkillAdminGUI::$container_gui_request
protected

Definition at line 54 of file class.ilContSkillAdminGUI.php.

◆ $ctrl

◆ $gui

ILIAS Container InternalGUIService ilContSkillAdminGUI::$gui
protected

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

◆ $lng

◆ $params

array ilContSkillAdminGUI::$params = []
protected

Definition at line 53 of file class.ilContSkillAdminGUI.php.

◆ $profile_service

SkillProfileService ilContSkillAdminGUI::$profile_service
protected

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

◆ $ref_id

int ilContSkillAdminGUI::$ref_id = 0
protected

Definition at line 46 of file class.ilContSkillAdminGUI.php.

◆ $requested_combined_skill_ids

array ilContSkillAdminGUI::$requested_combined_skill_ids = []
protected

Definition at line 58 of file class.ilContSkillAdminGUI.php.

◆ $requested_profile_ids

array ilContSkillAdminGUI::$requested_profile_ids = []
protected

Definition at line 60 of file class.ilContSkillAdminGUI.php.

◆ $requested_selected_profile_id

int ilContSkillAdminGUI::$requested_selected_profile_id = 0
protected

Definition at line 59 of file class.ilContSkillAdminGUI.php.

Referenced by saveSelectedProfile().

◆ $requested_selected_skill

string ilContSkillAdminGUI::$requested_selected_skill = ""
protected

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

◆ $requested_usr_id

int ilContSkillAdminGUI::$requested_usr_id = 0
protected

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

Referenced by deassignCompetencesConfirm(), and publishAssignments().

◆ $requested_usr_ids

array ilContSkillAdminGUI::$requested_usr_ids = []
protected

Definition at line 56 of file class.ilContSkillAdminGUI.php.

Referenced by deassignCompetencesConfirm(), and publishAssignments().

◆ $skmg_settings

ilSkillManagementSettings ilContSkillAdminGUI::$skmg_settings
protected

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

◆ $tabs

◆ $toolbar

ilToolbarGUI ilContSkillAdminGUI::$toolbar
protected

Definition at line 44 of file class.ilContSkillAdminGUI.php.

Referenced by listCompetences(), and listProfiles().

◆ $tpl

◆ $tree_access_manager

SkillTreeAccess ilContSkillAdminGUI::$tree_access_manager
protected

Definition at line 49 of file class.ilContSkillAdminGUI.php.

◆ $tree_service

SkillTreeService ilContSkillAdminGUI::$tree_service
protected

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

◆ $usage_service

SkillUsageService ilContSkillAdminGUI::$usage_service
protected

Definition at line 52 of file class.ilContSkillAdminGUI.php.


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