ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilPersonalSkillTableGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2011 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once("./Services/Table/classes/class.ilTable2GUI.php");
6
16{
20 protected $ctrl;
21
25 protected $access;
26
30 protected $user;
31
35 public function __construct($a_parent_obj, $a_parent_cmd)
36 {
37 global $DIC;
38
39 $this->ctrl = $DIC->ctrl();
40 $this->lng = $DIC->language();
41 $this->access = $DIC->access();
42 $this->user = $DIC->user();
43 $ilCtrl = $DIC->ctrl();
44 $lng = $DIC->language();
45 $ilAccess = $DIC->access();
46 $lng = $DIC->language();
47 $ilUser = $DIC->user();
48
49 parent::__construct($a_parent_obj, $a_parent_cmd);
50
51 include_once("./Services/Skill/classes/class.ilPersonalSkill.php");
53 $this->setTitle($lng->txt("skills"));
54
55 $this->addColumn("", "", "1", true);
56 $this->addColumn($this->lng->txt("title"), "title");
57 $this->addColumn($this->lng->txt("skmg_materials"));
58 $this->addColumn($this->lng->txt("actions"));
59
60 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
61 $this->setRowTemplate("tpl.personal_skill_row.html", "Services/Skill");
62
63 $this->addMultiCommand("confirmSkillRemove", $lng->txt("skmg_remove_skills"));
64 }
65
69 protected function fillRow($a_set)
70 {
73
74 // assign materials
75 $ilCtrl->setParameterByClass("ilpersonalskillsgui", "skill_id", $a_set["skill_node_id"]);
76 $this->tpl->setCurrentBlock("cmd");
77 $this->tpl->setVariable("TXT_CMD", $lng->txt("skmg_assign_materials"));
78 $this->tpl->setVariable(
79 "HREF_CMD",
80 $ilCtrl->getLinkTargetByClass("ilpersonalskillsgui", "assignMaterials")
81 );
82 $this->tpl->parseCurrentBlock();
83 $ilCtrl->setParameterByClass("ilpersonalskillsgui", "skill_id", "");
84
85 //var_dump($a_set);
86 $this->tpl->setVariable("SKL_NODE_ID", $a_set["skill_node_id"]);
87 $this->tpl->setVariable("TITLE", $a_set["title"]);
88 }
89}
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 $ilCtrl
Definition: ilias.php:18
global $DIC
Definition: saml.php:7
$ilUser
Definition: imgupload.php:18