ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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{
21 protected $ctrl;
22
26 protected $access;
27
31 protected $user;
32
33
37 public function __construct($a_parent_obj, $a_parent_cmd)
38 {
39 global $DIC;
40
41 $this->ctrl = $DIC->ctrl();
42 $this->lng = $DIC->language();
43 $this->access = $DIC->access();
44 $this->user = $DIC->user();
45 $ilCtrl = $DIC->ctrl();
46 $lng = $DIC->language();
47 $ilAccess = $DIC->access();
48 $lng = $DIC->language();
49 $ilUser = $DIC->user();
50
51 parent::__construct($a_parent_obj, $a_parent_cmd);
52 include_once("./Services/Skill/classes/class.ilSkillSelfEvaluation.php");
54 $this->setTitle($lng->txt("skmg_self_evaluations"));
55
56 $this->addColumn("", "", 1);
57 $this->addColumn($this->lng->txt("created"));
58 $this->addColumn($this->lng->txt("last_update"));
59 $this->addColumn($this->lng->txt("skmg_skill"));
60 $this->addColumn($this->lng->txt("actions"));
61
62 $this->setEnableHeader(true);
63 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
64 $this->setRowTemplate("tpl.self_eval_overview_row.html", "Services/Skill");
65 $this->setEnableTitle(true);
66
67 $this->addMultiCommand("confirmSelfEvaluationDeletion", $lng->txt("delete"));
68 //$this->addCommandButton("", $lng->txt(""));
69 }
70
74 protected function fillRow($a_set)
75 {
78
79 $this->tpl->setVariable("SE_ID", $a_set["id"]);
80 $this->tpl->setVariable("VAL_CREATED", $a_set["created"]);
81 $this->tpl->setVariable("VAL_LAST_UPDATE", $a_set["last_update"]);
82 $this->tpl->setVariable(
83 "VAL_SKILL",
84 ilSkillTreeNode::_lookupTitle($a_set["top_skill_id"])
85 );
86 $this->tpl->setVariable("TXT_CMD", $lng->txt("edit"));
87 $ilCtrl->setParameter($this->parent_obj, "se_id", $a_set["id"]);
88 $this->tpl->setVariable(
89 "HREF_CMD",
90 $ilCtrl->getLinkTarget($this->parent_obj, "editSelfEvaluation")
91 );
92 }
93}
user()
Definition: user.php:4
An exception for terminatinating execution or to throw for unit testing.
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.
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.
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