25 public function __construct($a_parent_obj, $a_parent_cmd, $a_profile, $a_write_permission =
false)
29 $this->ctrl = $DIC->ctrl();
30 $this->lng = $DIC->language();
31 $this->access = $DIC->access();
32 $ilCtrl = $DIC->ctrl();
33 $lng = $DIC->language();
37 $this->profile = $a_profile;
40 $this->
setData($this->profile->getSkillLevels());
44 $this->
addColumn($this->lng->txt(
"skmg_order"),
"",
"1px");
45 $this->
addColumn($this->lng->txt(
"skmg_skill"));
46 $this->
addColumn($this->lng->txt(
"skmg_level"));
49 $this->
setRowTemplate(
"tpl.skill_profile_level_row.html",
"Services/Skill");
51 if ($a_write_permission) {
54 if (count($this->profile->getSkillLevels()) > 0) {
64 $path = $this->tree->getSkillTreePath(
65 $a_set[
"base_skill_id"],
68 $path_items = array();
69 foreach ($path as $p) {
70 if ($p[
"type"] !=
"skrt") {
71 $path_items[] = $p[
"title"];
74 $this->tpl->setVariable(
76 implode(
" > ", $path_items)
81 $this->tpl->setVariable(
83 ((
int) $a_set[
"base_skill_id"]) .
":" . ((
int) $a_set[
"tref_id"]) .
":" . ((
int) $a_set[
"level_id"]) .
84 ":" . ((
int) $a_set[
"order_nr"])
87 $this->tpl->setVariable(
"SKILL_ID", (
int) $a_set[
"base_skill_id"]);
88 $this->tpl->setVariable(
"TREF_ID", (
int) $a_set[
"tref_id"]);
89 $this->tpl->setVariable(
"ORDER_NR", (
int) $a_set[
"order_nr"]);
TableGUI class for skill profile levels.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
static lookupLevelTitle(int $a_id)
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
addMultiCommand($a_cmd, $a_text)
Add Command button.
__construct($a_parent_obj, $a_parent_cmd, $a_profile, $a_write_permission=false)
Constructor.
fillRow($a_set)
Fill table row.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
__construct(Container $dic, ilPlugin $plugin)
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.