46 $this->
ctrl = $DIC->ctrl();
47 $this->
lng = $DIC->language();
48 $this->
access = $DIC->access();
49 $ilCtrl = $DIC->ctrl();
50 $lng = $DIC->language();
52 $this->skill_manager = $DIC->skills()->internal()->manager();
53 $this->tree_repo = $DIC->skills()->internal()->repo()->getTreeRepo();
54 $this->admin_gui_request = $DIC->skills()->internal()->gui()->admin_request();
56 $this->profile = $a_profile;
57 $this->requested_ref_id = $this->admin_gui_request->
getRefId();
60 $this->
setData($this->profile->getSkillLevels());
63 $access_manager = $this->skill_manager->getTreeAccessManager($this->requested_ref_id);
64 if ($access_manager->hasManageProfilesPermission()) {
66 $this->
addColumn($this->
lng->txt(
"skmg_order"),
"",
"1px");
72 $this->
setRowTemplate(
"tpl.skill_profile_level_row.html",
"Services/Skill");
74 if ($access_manager->hasManageProfilesPermission()) {
76 if (count($this->profile->getSkillLevels()) > 0) {
82 protected function fillRow(array $a_set): void
84 $tree_id = $this->tree_repo->getTreeIdForNodeId($a_set[
"base_skill_id"]);
85 $node_manager = $this->skill_manager->getTreeNodeManager($tree_id);
86 $this->tpl->setVariable(
88 $node_manager->getWrittenPath(
89 $a_set[
"base_skill_id"],
96 $access_manager = $this->skill_manager->getTreeAccessManager($this->requested_ref_id);
97 if ($access_manager->hasManageProfilesPermission()) {
98 $this->tpl->setCurrentBlock(
"checkbox");
99 $this->tpl->setVariable(
101 ((
int) $a_set[
"base_skill_id"]) .
":" . ((
int) $a_set[
"tref_id"]) .
":" . ((
int) $a_set[
"level_id"]) .
102 ":" . ((
int) $a_set[
"order_nr"])
104 $this->tpl->setVariable(
"SKILL_ID", (
int) $a_set[
"base_skill_id"]);
105 $this->tpl->setVariable(
"TREF_ID", (
int) $a_set[
"tref_id"]);
106 $this->tpl->parseCurrentBlock();
107 $this->tpl->setCurrentBlock(
"order");
108 $this->tpl->setVariable(
"ORDER_NR", (
int) $a_set[
"order_nr"]);
109 $this->tpl->parseCurrentBlock();
TableGUI class for skill profile levels.
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)
__construct( $a_parent_obj, string $a_parent_cmd, SkillProfile $a_profile)
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
Request wrapper for guis in skill administration.
static lookupLevelTitle(int $a_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
SkillInternalManagerService $skill_manager
Skill internal manager service.
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
ilSkillTreeRepository $tree_repo
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)
SkillAdminGUIRequest $admin_gui_request
addMultiCommand(string $a_cmd, string $a_text)