ILIAS  release_8 Revision v8.24
class.ilSkillLevelProfileAssignmentTableGUI.php
Go to the documentation of this file.
1<?php
2
21
28{
29 protected int $skill_id = 0;
30 protected int $tref_id = 0;
33 protected int $requested_level_id = 0;
34
35 public function __construct($a_parent_obj, string $a_parent_cmd, string $a_cskill_id)
36 {
37 global $DIC;
38
39 $this->ctrl = $DIC->ctrl();
40 $this->lng = $DIC->language();
41 $this->admin_gui_request = $DIC->skills()->internal()->gui()->admin_request();
42 $ilCtrl = $DIC->ctrl();
43 $lng = $DIC->language();
44
45 $parts = explode(":", $a_cskill_id);
46 $this->skill_id = (int) $parts[0];
47 $this->tref_id = (int) $parts[1];
48
49 $this->requested_level_id = $this->admin_gui_request->getLevelId();
50
51 $this->skill = new ilBasicSkill($this->skill_id);
52 parent::__construct($a_parent_obj, $a_parent_cmd);
53 $this->setData($this->skill->getLevelData());
54 $this->setTitle(
55 $this->skill->getTitle() . ", " .
56 $lng->txt("skmg_skill_levels")
57 );
58
59 $this->addColumn($this->lng->txt("title"));
60 $this->addColumn($this->lng->txt("actions"));
61
62 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
63 $this->setRowTemplate("tpl.skill_level_profile_assignment_row.html", "Services/Skill");
64 }
65
66 protected function fillRow(array $a_set): void
67 {
69 $ilCtrl = $this->ctrl;
70
71 $this->tpl->setCurrentBlock("cmd");
72 $this->tpl->setVariable("CMD", $lng->txt("skmg_assign_level"));
73 $ilCtrl->setParameter($this->parent_obj, "level_id", (int) $a_set["id"]);
74 $this->tpl->setVariable("CMD_HREF", $ilCtrl->getLinkTarget(
75 $this->parent_obj,
76 "assignLevelToProfile"
77 ));
78 $ilCtrl->setParameter($this->parent_obj, "level_id", $this->requested_level_id);
79 $this->tpl->parseCurrentBlock();
80
81 $this->tpl->setVariable("TITLE", $a_set["title"]);
82 }
83}
Request wrapper for guis in skill administration.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
@inheritDoc
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
TableGUI class for skill profile skill level assignment.
__construct($a_parent_obj, string $a_parent_cmd, string $a_cskill_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
setFormAction(string $a_form_action, bool $a_multipart=false)
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)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setData(array $a_data)
Set table data.
ilLanguage $lng
global $DIC
Definition: feed.php:28
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
Definition: ltitoken.php:64
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc