46 $this->
ctrl = $DIC->ctrl();
47 $this->
lng = $DIC->language();
48 $this->
access = $DIC->access();
49 $ilCtrl = $DIC->ctrl();
50 $lng = $DIC->language();
51 $ilAccess = $DIC->access();
52 $lng = $DIC->language();
54 $this->admin_gui_request = $DIC->skills()->internal()->gui()->admin_request();
55 $this->requested_ref_id = $this->admin_gui_request->getRefId();
57 $this->tree_access_manager = $DIC->skills()->internal()->manager()->getTreeAccessManager($this->requested_ref_id);
58 $this->profile_manager = $DIC->skills()->internal()->manager()->getProfileManager();
60 $this->profile = $a_profile;
62 $this->
setData($this->profile_manager->getAssignments($this->profile->getId()));
65 if ($this->tree_access_manager->hasManageProfilesPermission() && !$this->profile->getRefId() > 0) {
75 $this->
setRowTemplate(
"tpl.profile_user_row.html",
"Services/Skill");
77 if ($this->tree_access_manager->hasManageProfilesPermission() && !$this->profile->getRefId() > 0) {
83 protected function fillRow(array $a_set): void
87 $this->tpl->setVariable(
"TYPE", $a_set[
"type"]);
88 $this->tpl->setVariable(
"NAME", $a_set[
"name"]);
89 $this->tpl->setVariable(
"OBJECT", $a_set[
"object_title"]);
90 if ($this->tree_access_manager->hasManageProfilesPermission() && !$this->profile->getRefId() > 0) {
91 $this->tpl->setCurrentBlock(
"checkbox");
92 $this->tpl->setVariable(
"ID", $a_set[
"id"]);
93 $this->tpl->parseCurrentBlock();
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_form_action, bool $a_multipart=false)
Request wrapper for guis in skill administration.
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
TableGUI class for skill profile user assignment.
SkillAdminGUIRequest $admin_gui_request
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
SkillProfileManager $profile_manager
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
__construct(Container $dic, ilPlugin $plugin)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
addMultiCommand(string $a_cmd, string $a_text)
__construct( $a_parent_obj, string $a_parent_cmd, SkillProfile $a_profile)
SkillTreeAccess $tree_access_manager