ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilObjClipboardTableGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 include_once("./Services/Table/classes/class.ilTable2GUI.php");
6 
16 {
20  protected $ctrl;
21 
25  public function __construct($a_parent_obj, $a_parent_cmd)
26  {
27  global $DIC;
28 
29  $this->ctrl = $DIC->ctrl();
30  $this->lng = $DIC->language();
31  $ilCtrl = $DIC->ctrl();
32  $lng = $DIC->language();
33 
34  parent::__construct($a_parent_obj, $a_parent_cmd);
35  $this->setTitle($lng->txt("clipboard"));
36 
37  $this->addColumn("", "", "1");
38  $this->addColumn($this->lng->txt("title"), "title");
39  $this->addColumn($this->lng->txt("action"));
40 
41  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
42  $this->setRowTemplate("tpl.obj_cliboard_row.html", "Services/Object");
43  }
44 
48  protected function fillRow($a_set)
49  {
50  $lng = $this->lng;
51  //var_dump($a_set);
52  $this->tpl->setVariable("ICON", ilUtil::img(
53  ilObject::_getIcon($a_set["obj_id"], "tiny"),
54  $a_set["type_txt"]
55  ));
56  $this->tpl->setVariable("TITLE", $a_set["title"]);
57  $this->tpl->setVariable("CMD", $a_set["cmd"]);
58  }
59 }
global $DIC
Definition: saml.php:7
global $ilCtrl
Definition: ilias.php:18
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
Class ilTable2GUI.
static img($a_src, $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.