ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 ?>