ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilSelfEvaluationTableGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once("./Services/Table/classes/class.ilTable2GUI.php");
5 
6 include_once("./Services/Skill/classes/class.ilSkillTreeNode.php");
7 
17 {
18 
22  function __construct($a_parent_obj, $a_parent_cmd)
23  {
24  global $ilCtrl, $lng, $ilAccess, $lng, $ilUser;
25 
26  parent::__construct($a_parent_obj, $a_parent_cmd);
27  include_once("./Services/Skill/classes/class.ilSkillSelfEvaluation.php");
29  $this->setTitle($lng->txt("skmg_self_evaluations"));
30 
31  $this->addColumn("", "", 1);
32  $this->addColumn($this->lng->txt("created"));
33  $this->addColumn($this->lng->txt("last_update"));
34  $this->addColumn($this->lng->txt("skmg_skill"));
35  $this->addColumn($this->lng->txt("actions"));
36 
37  $this->setEnableHeader(true);
38  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
39  $this->setRowTemplate("tpl.self_eval_overview_row.html", "Services/Skill");
40  $this->setEnableTitle(true);
41 
42  $this->addMultiCommand("confirmSelfEvaluationDeletion", $lng->txt("delete"));
43  //$this->addCommandButton("", $lng->txt(""));
44  }
45 
49  protected function fillRow($a_set)
50  {
51  global $lng, $ilCtrl;
52 
53  $this->tpl->setVariable("SE_ID", $a_set["id"]);
54  $this->tpl->setVariable("VAL_CREATED", $a_set["created"]);
55  $this->tpl->setVariable("VAL_LAST_UPDATE", $a_set["last_update"]);
56  $this->tpl->setVariable("VAL_SKILL",
57  ilSkillTreeNode::_lookupTitle($a_set["top_skill_id"]));
58  $this->tpl->setVariable("TXT_CMD", $lng->txt("edit"));
59  $ilCtrl->setParameter($this->parent_obj, "se_id", $a_set["id"]);
60  $this->tpl->setVariable("HREF_CMD",
61  $ilCtrl->getLinkTarget($this->parent_obj, "editSelfEvaluation"));
62  }
63 
64 }
65 ?>