ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
5include_once("./Services/Table/classes/class.ilTable2GUI.php");
6
16{
20 function __construct($a_parent_obj, $a_parent_cmd)
21 {
22 global $ilCtrl, $lng;
23
24 parent::__construct($a_parent_obj, $a_parent_cmd);
25 $this->setTitle($lng->txt("clipboard"));
26
27 $this->addColumn("", "", "1");
28 $this->addColumn($this->lng->txt("title"), "title");
29 $this->addColumn($this->lng->txt("action"));
30
31 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
32 $this->setRowTemplate("tpl.obj_cliboard_row.html", "Services/Object");
33 }
34
38 protected function fillRow($a_set)
39 {
40 global $lng;
41//var_dump($a_set);
42 $this->tpl->setVariable("ICON", ilUtil::img(ilObject::_getIcon($a_set["obj_id"], "tiny"),
43 $a_set["type_txt"]));
44 $this->tpl->setVariable("TITLE", $a_set["title"]);
45 $this->tpl->setVariable("CMD", $a_set["cmd"]);
46 }
47
48}
49?>
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
Class ilTable2GUI.
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.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
static img($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:40