ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
5 include_once("./Services/Table/classes/class.ilTable2GUI.php");
6 
16 {
20  function __construct($a_parent_obj, $a_parent_cmd)
21  {
22  global $ilCtrl, $lng, $ilAccess, $lng, $ilUser;
23 
24  parent::__construct($a_parent_obj, $a_parent_cmd);
25 
26  include_once("./Services/Skill/classes/class.ilPersonalSkill.php");
27  $this->setData(ilPersonalSkill::getSelectedUserSkills($ilUser->getId()));
28  $this->setTitle($lng->txt("skills"));
29 
30  $this->addColumn("", "", "1", true);
31  $this->addColumn($this->lng->txt("title"), "title");
32  $this->addColumn($this->lng->txt("skmg_materials"));
33  $this->addColumn($this->lng->txt("actions"));
34 
35  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
36  $this->setRowTemplate("tpl.personal_skill_row.html", "Services/Skill");
37 
38  $this->addMultiCommand("confirmSkillRemove", $lng->txt("skmg_remove_skills"));
39  }
40 
44  protected function fillRow($a_set)
45  {
46  global $lng, $ilCtrl;
47 
48  // assign materials
49  $ilCtrl->setParameterByClass("ilpersonalskillsgui", "skill_id", $a_set["skill_node_id"]);
50  $this->tpl->setCurrentBlock("cmd");
51  $this->tpl->setVariable("TXT_CMD", $lng->txt("skmg_assign_materials"));
52  $this->tpl->setVariable("HREF_CMD",
53  $ilCtrl->getLinkTargetByClass("ilpersonalskillsgui", "assignMaterials"));
54  $this->tpl->parseCurrentBlock();
55  $ilCtrl->setParameterByClass("ilpersonalskillsgui", "skill_id", "");
56 
57 //var_dump($a_set);
58  $this->tpl->setVariable("SKL_NODE_ID", $a_set["skill_node_id"]);
59  $this->tpl->setVariable("TITLE", $a_set["title"]);
60  }
61 
62 }
63 ?>
static getSelectedUserSkills($a_user_id)
Get personal selected user skills.
global $ilCtrl
Definition: ilias.php:18
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
Class ilTable2GUI.
addMultiCommand($a_cmd, $a_text)
Add Command button.
$ilUser
Definition: imgupload.php:18
setRowTemplate($a_template, $a_template_dir="")
Set row template.
TableGUI class for personal skills.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
global $lng
Definition: privfeed.php:17
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.