ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilPersonalSkillTableGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2020 ILIAS open source, Extended GPL, see docs/LICENSE */
4
11{
15 protected $ctrl;
16
20 protected $access;
21
25 protected $user;
26
30 public function __construct($a_parent_obj, $a_parent_cmd)
31 {
32 global $DIC;
33
34 $this->ctrl = $DIC->ctrl();
35 $this->lng = $DIC->language();
36 $this->access = $DIC->access();
37 $this->user = $DIC->user();
38 $ilCtrl = $DIC->ctrl();
39 $lng = $DIC->language();
40 $ilAccess = $DIC->access();
41 $lng = $DIC->language();
42 $ilUser = $DIC->user();
43
44 parent::__construct($a_parent_obj, $a_parent_cmd);
45
47 $this->setTitle($lng->txt("skills"));
48
49 $this->addColumn("", "", "1", true);
50 $this->addColumn($this->lng->txt("title"), "title");
51 $this->addColumn($this->lng->txt("skmg_materials"));
52 $this->addColumn($this->lng->txt("actions"));
53
54 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
55 $this->setRowTemplate("tpl.personal_skill_row.html", "Services/Skill");
56
57 $this->addMultiCommand("confirmSkillRemove", $lng->txt("skmg_remove_skills"));
58 }
59
63 protected function fillRow($a_set)
64 {
66 $ilCtrl = $this->ctrl;
67
68 // assign materials
69 $ilCtrl->setParameterByClass("ilpersonalskillsgui", "skill_id", $a_set["skill_node_id"]);
70 $this->tpl->setCurrentBlock("cmd");
71 $this->tpl->setVariable("TXT_CMD", $lng->txt("skmg_assign_materials"));
72 $this->tpl->setVariable(
73 "HREF_CMD",
74 $ilCtrl->getLinkTargetByClass("ilpersonalskillsgui", "assignMaterials")
75 );
76 $this->tpl->parseCurrentBlock();
77 $ilCtrl->setParameterByClass("ilpersonalskillsgui", "skill_id", "");
78
79 //var_dump($a_set);
80 $this->tpl->setVariable("SKL_NODE_ID", $a_set["skill_node_id"]);
81 $this->tpl->setVariable("TITLE", $a_set["title"]);
82 }
83}
user()
Definition: user.php:4
An exception for terminatinating execution or to throw for unit testing.
TableGUI class for personal skills.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
static getSelectedUserSkills($a_user_id)
Get personal selected user skills.
Class ilTable2GUI.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
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.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
global $DIC
Definition: goto.php:24
$ilUser
Definition: imgupload.php:18
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc