ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
4include_once("./Services/Table/classes/class.ilTable2GUI.php");
5
6include_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?>
Self evaluation overview table.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
static getAllSelfEvaluationsOfUser($a_user, $a_one_per_top_skill=false)
Get all self evaluations.
static _lookupTitle($a_obj_id, $a_tref_id=0)
Lookup Title.
Class ilTable2GUI.
setEnableHeader($a_enableheader)
Set Enable Header.
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.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:40
global $ilUser
Definition: imgupload.php:15