ILIAS  release_7 Revision v7.30-3-g800a261c036
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 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 {
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}
An exception for terminatinating execution or to throw for unit testing.
__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.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
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.
static img($a_src, $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
global $DIC
Definition: goto.php:24
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc