ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 33 of file class.ilContSkillAdminGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilContSkillAdminGUI::__construct ( ilContainerGUI  $a_container_gui)

Definition at line 61 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().

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

Member Function Documentation

◆ assignCompetences()

ilContSkillAdminGUI::assignCompetences ( )

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

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

159  : void
160  {
161  $tpl = $this->tpl;
162  $tabs = $this->tabs;
163  $ctrl = $this->ctrl;
164 
165  $ctrl->saveParameter($this, "usr_id");
166  $tabs->activateSubTab("members");
167 
168  $form = $this->initCompetenceAssignmentForm();
169  $tpl->setContent($form->getHTML());
170  }
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 622 of file class.ilContSkillAdminGUI.php.

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

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

◆ confirmDeleteSingleLocalProfile()

ilContSkillAdminGUI::confirmDeleteSingleLocalProfile ( )

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

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

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

◆ confirmRemoveSelectedGlobalProfiles()

ilContSkillAdminGUI::confirmRemoveSelectedGlobalProfiles ( )

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

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

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

◆ confirmRemoveSelectedSkill()

ilContSkillAdminGUI::confirmRemoveSelectedSkill ( )

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

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

406  : void
407  {
408  $lng = $this->lng;
409  $ctrl = $this->ctrl;
410  $tpl = $this->tpl;
411  $tabs = $this->tabs;
412 
413  $tabs->activateSubTab("competences");
414 
415  if (empty($this->requested_combined_skill_ids)) {
416  $this->tpl->setOnScreenMessage('info', $lng->txt("no_checkbox"), true);
417  $ctrl->redirect($this, "listCompetences");
418  } else {
419  $cgui = new ilConfirmationGUI();
420  $cgui->setFormAction($ctrl->getFormAction($this));
421  $cgui->setHeaderText($lng->txt("cont_really_remove_skill_from_course"));
422  $cgui->setCancel($lng->txt("cancel"), "listCompetences");
423  $cgui->setConfirm($lng->txt("remove"), "removeSelectedSkill");
424 
425  foreach ($this->requested_combined_skill_ids as $i) {
426  $s = explode(":", $i);
427  $cgui->addItem("id[]", (string) $i, ilBasicSkill::_lookupTitle((int) $s[0], (int) $s[1]));
428  }
429 
430  $tpl->setContent($cgui->getHTML());
431  }
432  }
getFormAction(object $a_gui_obj, ?string $a_fallback_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...
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.
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:

◆ confirmRemoveSingleGlobalProfile()

ilContSkillAdminGUI::confirmRemoveSingleGlobalProfile ( )

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

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

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

◆ deassignCompetences()

ilContSkillAdminGUI::deassignCompetences ( )

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

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

337  : void
338  {
339  $ctrl = $this->ctrl;
340  $lng = $this->lng;
341 
342  foreach ($this->requested_usr_ids as $user_id) {
343  $this->cont_skill_manager->removeAllMemberSkillsFromContainer($user_id);
344  }
345 
346  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
347  $ctrl->redirect($this, "listMembers");
348  }
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 304 of file class.ilContSkillAdminGUI.php.

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

304  : void
305  {
306  $ctrl = $this->ctrl;
307  $lng = $this->lng;
308  $tpl = $this->tpl;
309  $tabs = $this->tabs;
310 
311  $tabs->activateSubTab("members");
312 
313  $user_ids = $this->requested_usr_ids;
314  if (empty($this->requested_usr_ids) && $this->requested_usr_id > 0) {
315  $user_ids[] = $this->requested_usr_id;
316  }
317 
318  if (!is_array($user_ids) || count($user_ids) === 0) {
319  $this->tpl->setOnScreenMessage('info', $lng->txt("no_checkbox"), true);
320  $ctrl->redirect($this, "listMembers");
321  } else {
322  $cgui = new ilConfirmationGUI();
323  $cgui->setFormAction($ctrl->getFormAction($this));
324  $cgui->setHeaderText($lng->txt("cont_really_deassign_skills"));
325  $cgui->setCancel($lng->txt("cancel"), "listMembers");
326  $cgui->setConfirm($lng->txt("cont_deassign_competence"), "deassignCompetences");
327 
328  foreach ($user_ids as $i) {
329  $name = ilUserUtil::getNamePresentation($i, false, false, "", true);
330  $cgui->addItem("usr_ids[]", (string) $i, $name);
331  }
332 
333  $tpl->setContent($cgui->getHTML());
334  }
335  }
getFormAction(object $a_gui_obj, ?string $a_fallback_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...
activateSubTab(string $a_id)
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
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:
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:

◆ deleteSelectedLocalProfiles()

ilContSkillAdminGUI::deleteSelectedLocalProfiles ( )

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

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

653  : void
654  {
655  $lng = $this->lng;
656  $ctrl = $this->ctrl;
657 
658  if (!empty($this->requested_profile_ids)) {
659  foreach ($this->requested_profile_ids as $id) {
660  if ($this->profile_service->lookupProfileRefId($id) > 0) {
661  $this->profile_service->deleteProfile($id);
662  }
663  }
664  }
665  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
666 
667  $ctrl->redirect($this, "listProfiles");
668  }
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 696 of file class.ilContSkillAdminGUI.php.

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

696  : void
697  {
698  $lng = $this->lng;
699  $ctrl = $this->ctrl;
700 
701  $profile_id = (int) $this->params["profile_id"];
702 
703  if ($profile_id > 0) {
704  $this->profile_service->deleteProfile($profile_id);
705  }
706  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
707 
708  $ctrl->redirect($this, "listProfiles");
709  }
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 106 of file class.ilContSkillAdminGUI.php.

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

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

References $path.

Referenced by initCompetenceAssignmentForm().

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

◆ initCompetenceAssignmentForm()

ilContSkillAdminGUI::initCompetenceAssignmentForm ( )

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

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

Referenced by assignCompetences(), and saveCompetenceAssignment().

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

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

Referenced by saveSettings(), and settings().

727  {
728  $lng = $this->lng;
729  $ctrl = $this->ctrl;
730 
731  $form = new ilPropertyFormGUI();
732 
733  // publish
734  $radg = new ilRadioGroupInputGUI($lng->txt("cont_skill_publish"), "cont_skill_publish");
735  $op1 = new ilRadioOption($lng->txt("cont_skill_publish_auto"), '0', $lng->txt("cont_skill_publish_auto_info"));
736  $radg->addOption($op1);
737  $op2 = new ilRadioOption($lng->txt("cont_skill_publish_manual"), '1', $lng->txt("cont_skill_publish_manual_info"));
738  $radg->addOption($op2);
739  $form->addItem($radg);
740  $radg->setValue(ilContainer::_lookupContainerSetting($this->container->getId(), "cont_skill_publish", '0'));
741 
742  $form->addCommandButton("saveSettings", $lng->txt("save"));
743 
744  $form->setTitle($lng->txt("settings"));
745  $form->setFormAction($ctrl->getFormAction($this));
746 
747  return $form;
748  }
This class represents an option in a radio group.
getFormAction(object $a_gui_obj, ?string $a_fallback_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...
This class represents a property in a property form.
setValue(string $a_value)
static _lookupContainerSetting(int $a_id, string $a_keyword, ?string $a_default_value=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ listCompetences()

ilContSkillAdminGUI::listCompetences ( )

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

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

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

◆ listMembers()

ilContSkillAdminGUI::listMembers ( )

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

References $tabs, $tpl, ilTabsGUI\activateSubTab(), and ILIAS\UICore\GlobalTemplate\setContent().

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

◆ listProfiles()

ilContSkillAdminGUI::listProfiles ( )

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

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

454  : void
455  {
456  $tpl = $this->tpl;
457  $tabs = $this->tabs;
459  $ctrl = $this->ctrl;
460  $lng = $this->lng;
461 
462  $tabs->activateSubTab("profiles");
463 
464  $options = [];
465  $options[0] = $lng->txt("please_select");
466 
467  $selectable_profiles = [];
468  $all_profiles = $this->profile_service->getAllGlobalProfiles();
469  $selected_profiles = $this->profile_service->getGlobalProfilesOfRole($this->cont_member_role_id);
470  foreach ($all_profiles as $profile) {
471  if (!array_key_exists($profile->getId(), $selected_profiles)) {
472  $selectable_profiles[$profile->getId()] = $profile;
473  }
474  }
475 
476  foreach ($selectable_profiles as $profile) {
477  $tree = $this->tree_service->getObjSkillTreeById($profile->getSkillTreeId());
478  $options[$profile->getId()] = $tree->getTitle() . ": " . $profile->getTitle();
479  }
480 
481  if ($this->skmg_settings->getLocalAssignmentOfProfiles()) {
482  $select = new ilSelectInputGUI($lng->txt("skmg_profile"), "p_id");
483  $select->setOptions($options);
484  $select->setValue(0);
485  $toolbar->addInputItem($select, true);
486 
487  $this->gui->button(
488  $this->lng->txt("cont_add_global_profile"),
489  "saveSelectedProfile"
490  )->submit()->toToolbar();
491  }
492 
493  if ($this->skmg_settings->getLocalAssignmentOfProfiles()
494  && $this->skmg_settings->getAllowLocalProfiles()) {
496  }
497 
498  if ($this->skmg_settings->getAllowLocalProfiles()) {
499  $this->gui->link(
500  $this->lng->txt("cont_add_local_profile"),
501  $ctrl->getLinkTargetByClass("ilskillprofilegui", "createLocal")
502  )->emphasised()->toToolbar();
503  }
504 
506 
507  // table
508  $tab = new ilContProfileTableGUI(
509  $this,
510  "listProfiles",
511  $this->container->getRefId()
512  );
513 
514  $tpl->setContent($tab->getHTML());
515  }
getFormAction(object $a_gui_obj, ?string $a_fallback_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
setContent(string $a_html)
Sets content for standard template.
setOptions(array $a_options)
TableGUI class for competence profiles in containers.
addInputItem(ilToolbarItem $a_item, bool $a_output_label=false)
getLinkTargetByClass( $a_class, ?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:

◆ publishAssignments()

ilContSkillAdminGUI::publishAssignments ( )

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

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

275  : void
276  {
277  $ctrl = $this->ctrl;
278  $lng = $this->lng;
279 
280  $user_ids = $this->requested_usr_ids;
281  if (empty($this->requested_usr_ids) && $this->requested_usr_id > 0) {
282  $user_ids[] = $this->requested_usr_id;
283  }
284 
285  $not_changed = [];
286  foreach ($user_ids as $user_id) {
287  if (!$this->cont_skill_manager->publishMemberSkills($user_id)) {
288  $not_changed[] = $user_id;
289  }
290  }
291 
292  if (count($not_changed) === 0) {
293  $this->tpl->setOnScreenMessage('success', $lng->txt("cont_skll_published"), true);
294  } else {
295  $names = array_map(static function (int $id) {
296  return ilUserUtil::getNamePresentation($id, false, false, "", true);
297  }, $not_changed);
298  $this->tpl->setOnScreenMessage('info', $lng->txt("cont_skll_published_some_not") . " (" . implode("; ", $names) . ")", true);
299  }
300 
301  $ctrl->redirect($this, "listMembers");
302  }
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 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:
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:

◆ removeSelectedGlobalProfiles()

ilContSkillAdminGUI::removeSelectedGlobalProfiles ( )

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

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

567  : void
568  {
569  $lng = $this->lng;
570  $ctrl = $this->ctrl;
571 
572  foreach ($this->requested_profile_ids as $id) {
573  $this->profile_service->removeRoleFromProfile($id, $this->cont_member_role_id);
574  }
575 
576  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
577 
578  $ctrl->redirect($this, "listProfiles");
579  }
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 434 of file class.ilContSkillAdminGUI.php.

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

434  : void
435  {
436  $lng = $this->lng;
437  $ctrl = $this->ctrl;
438 
439  if (!empty($this->requested_combined_skill_ids)) {
440  foreach ($this->requested_combined_skill_ids as $id) {
441  $s = explode(":", $id);
442  $this->cont_skill_manager->removeSkillFromContainer((int) $s[0], (int) $s[1]);
443  $this->usage_service->removeUsage($this->container->getId(), (int) $s[0], (int) $s[1]);
444  }
445  }
446  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
447 
448  $ctrl->redirect($this, "listCompetences");
449  }
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 607 of file class.ilContSkillAdminGUI.php.

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

607  : void
608  {
609  $lng = $this->lng;
610  $ctrl = $this->ctrl;
611 
612  $profile_id = (int) $this->params["profile_id"];
613 
614  if ($profile_id > 0) {
615  $this->profile_service->removeRoleFromProfile($profile_id, $this->cont_member_role_id);
616  }
617  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
618 
619  $ctrl->redirect($this, "listProfiles");
620  }
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 241 of file class.ilContSkillAdminGUI.php.

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

241  : void
242  {
243  $ctrl = $this->ctrl;
244  $lng = $this->lng;
245 
246  $form = $this->initCompetenceAssignmentForm();
247  $form->checkInput();
248 
249  foreach ($this->cont_skill_manager->getSkillsForContainer() as $sk) {
250  $l = (int) $form->getInput("skill_" . $sk->getBaseSkillId() . "_" . $sk->getTrefId());
251  if ($l === -1) {
252  $this->cont_skill_manager->removeMemberSkillFromContainer(
253  $this->requested_usr_id,
254  $sk->getBaseSkillId(),
255  $sk->getTrefId()
256  );
257  } else {
258  $this->cont_skill_manager->addMemberSkillForContainer(
259  $this->requested_usr_id,
260  $sk->getBaseSkillId(),
261  $sk->getTrefId(),
262  $l
263  );
264  }
265  }
266 
267  if (!ilContainer::_lookupContainerSetting($this->container->getId(), "cont_skill_publish", '0')) {
268  $this->cont_skill_manager->publishMemberSkills($this->requested_usr_id);
269  }
270 
271  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
272  $ctrl->redirect($this, "listMembers");
273  }
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 517 of file class.ilContSkillAdminGUI.php.

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

517  : void
518  {
519  $lng = $this->lng;
520  $ctrl = $this->ctrl;
521 
523 
524  if (!($profile_id > 0)) {
525  $this->tpl->setOnScreenMessage('info', $lng->txt("cont_skill_no_profile_selected"), true);
526  $ctrl->redirect($this, "listProfiles");
527  }
528 
529  $this->profile_service->addRoleToProfile($profile_id, $this->cont_member_role_id);
530 
531  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
532 
533  $ctrl->redirect($this, "listProfiles");
534  }
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 391 of file class.ilContSkillAdminGUI.php.

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

391  : void
392  {
393  $lng = $this->lng;
394  $ctrl = $this->ctrl;
395 
396  $s = explode(":", ($this->requested_selected_skill));
397 
398  $this->cont_skill_manager->addSkillForContainer((int) $s[0], (int) $s[1]);
399  $this->usage_service->addUsage($this->container->getId(), (int) $s[0], (int) $s[1]);
400 
401  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
402 
403  $ctrl->redirect($this, "listCompetences");
404  }
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 750 of file class.ilContSkillAdminGUI.php.

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

750  : void
751  {
752  $lng = $this->lng;
753  $ctrl = $this->ctrl;
754 
755  $form = $this->initSettingsForm();
756  $form->checkInput();
757  ilContainer::_writeContainerSetting($this->container->getId(), "cont_skill_publish", $form->getInput("cont_skill_publish"));
758 
759  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
760 
761  $ctrl->redirect($this, "settings");
762  }
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 378 of file class.ilContSkillAdminGUI.php.

References $tabs, $tpl, ilTabsGUI\activateSubTab(), and ILIAS\UICore\GlobalTemplate\setContent().

378  : void
379  {
380  $tpl = $this->tpl;
381  $tabs = $this->tabs;
382 
383  $tabs->activateSubTab("competences");
384 
385  $sel = new ilSkillSelectorGUI($this, "selectSkill", $this, "saveSelectedSkill");
386  if (!$sel->handleCommand()) {
387  $tpl->setContent($sel->getHTML());
388  }
389  }
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 714 of file class.ilContSkillAdminGUI.php.

References $tabs, $tpl, ilTabsGUI\activateSubTab(), initSettingsForm(), and ILIAS\UICore\GlobalTemplate\setContent().

714  : void
715  {
716  $tpl = $this->tpl;
717  $tabs = $this->tabs;
718 
719  $tabs->activateSubTab("settings");
720 
721  $form = $this->initSettingsForm();
722 
723  $tpl->setContent($form->getHTML());
724  }
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 44 of file class.ilContSkillAdminGUI.php.

◆ $cont_member_role_id

int ilContSkillAdminGUI::$cont_member_role_id = 0
protected

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

◆ $cont_skill_manager

ContainerSkills ContainerSkillManager ilContSkillAdminGUI::$cont_skill_manager
protected

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

◆ $container

ilContainer ilContSkillAdminGUI::$container
protected

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

◆ $container_gui

ilContainerGUI ilContSkillAdminGUI::$container_gui
protected

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

◆ $container_gui_request

ContainerSkills SkillContainerGUIRequest ilContSkillAdminGUI::$container_gui_request
protected

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

◆ $ctrl

◆ $gui

ILIAS Container InternalGUIService ilContSkillAdminGUI::$gui
protected

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

◆ $lng

◆ $params

array ilContSkillAdminGUI::$params = []
protected

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

◆ $profile_service

SkillProfileService ilContSkillAdminGUI::$profile_service
protected

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

◆ $ref_id

int ilContSkillAdminGUI::$ref_id = 0
protected

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

◆ $requested_combined_skill_ids

array ilContSkillAdminGUI::$requested_combined_skill_ids = []
protected

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

◆ $requested_profile_ids

array ilContSkillAdminGUI::$requested_profile_ids = []
protected

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

◆ $requested_selected_profile_id

int ilContSkillAdminGUI::$requested_selected_profile_id = 0
protected

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

Referenced by saveSelectedProfile().

◆ $requested_selected_skill

string ilContSkillAdminGUI::$requested_selected_skill = ""
protected

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

◆ $requested_usr_id

int ilContSkillAdminGUI::$requested_usr_id = 0
protected

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

Referenced by deassignCompetencesConfirm(), and publishAssignments().

◆ $requested_usr_ids

array ilContSkillAdminGUI::$requested_usr_ids = []
protected

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

Referenced by deassignCompetencesConfirm(), and publishAssignments().

◆ $skmg_settings

ilSkillManagementSettings ilContSkillAdminGUI::$skmg_settings
protected

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

◆ $tabs

◆ $toolbar

ilToolbarGUI ilContSkillAdminGUI::$toolbar
protected

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

Referenced by listCompetences(), and listProfiles().

◆ $tpl

◆ $tree_access_manager

SkillTreeAccess ilContSkillAdminGUI::$tree_access_manager
protected

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

◆ $tree_service

SkillTreeService ilContSkillAdminGUI::$tree_service
protected

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

◆ $usage_service

SkillUsageService ilContSkillAdminGUI::$usage_service
protected

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


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