ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilSelfEvaluationTableGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2020 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
11 {
15  protected $ctrl;
16 
20  protected $access;
21 
25  protected $user;
26 
27 
31  public function __construct($a_parent_obj, $a_parent_cmd)
32  {
33  global $DIC;
34 
35  $this->ctrl = $DIC->ctrl();
36  $this->lng = $DIC->language();
37  $this->access = $DIC->access();
38  $this->user = $DIC->user();
39  $ilCtrl = $DIC->ctrl();
40  $lng = $DIC->language();
41  $ilAccess = $DIC->access();
42  $lng = $DIC->language();
43  $ilUser = $DIC->user();
44 
45  parent::__construct($a_parent_obj, $a_parent_cmd);
47  $this->setTitle($lng->txt("skmg_self_evaluations"));
48 
49  $this->addColumn("", "", 1);
50  $this->addColumn($this->lng->txt("created"));
51  $this->addColumn($this->lng->txt("last_update"));
52  $this->addColumn($this->lng->txt("skmg_skill"));
53  $this->addColumn($this->lng->txt("actions"));
54 
55  $this->setEnableHeader(true);
56  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
57  $this->setRowTemplate("tpl.self_eval_overview_row.html", "Services/Skill");
58  $this->setEnableTitle(true);
59 
60  $this->addMultiCommand("confirmSelfEvaluationDeletion", $lng->txt("delete"));
61  //$this->addCommandButton("", $lng->txt(""));
62  }
63 
67  protected function fillRow($a_set)
68  {
69  $lng = $this->lng;
70  $ilCtrl = $this->ctrl;
71 
72  $this->tpl->setVariable("SE_ID", $a_set["id"]);
73  $this->tpl->setVariable("VAL_CREATED", $a_set["created"]);
74  $this->tpl->setVariable("VAL_LAST_UPDATE", $a_set["last_update"]);
75  $this->tpl->setVariable(
76  "VAL_SKILL",
77  ilSkillTreeNode::_lookupTitle($a_set["top_skill_id"])
78  );
79  $this->tpl->setVariable("TXT_CMD", $lng->txt("edit"));
80  $ilCtrl->setParameter($this->parent_obj, "se_id", $a_set["id"]);
81  $this->tpl->setVariable(
82  "HREF_CMD",
83  $ilCtrl->getLinkTarget($this->parent_obj, "editSelfEvaluation")
84  );
85  }
86 }
static getAllSelfEvaluationsOfUser($a_user, $a_one_per_top_skill=false)
Get all self evaluations.
Self evaluation overview table.
user()
Definition: user.php:4
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
global $DIC
Definition: goto.php:24
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
static _lookupTitle($a_obj_id, $a_tref_id=0)
Lookup Title.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
__construct(Container $dic, ilPlugin $plugin)
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.
setEnableHeader($a_enableheader)
Set Enable Header.
$ilUser
Definition: imgupload.php:18
setEnableTitle($a_enabletitle)
Set Enable Title.