ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjClipboardTableGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27{
28 public function __construct(?object $parent_obj, string $parent_cmd)
29 {
31
32 $this->setTitle($this->lng->txt("clipboard"));
33
34 $this->addColumn("", "", "1");
35 $this->addColumn($this->lng->txt("title"), "title");
36 $this->addColumn($this->lng->txt("action"));
37
38 $this->setFormAction($this->ctrl->getFormAction($parent_obj));
39 $this->setRowTemplate("tpl.obj_cliboard_row.html", "components/ILIAS/ILIASObject");
40 }
41
42 protected function fillRow(array $set): void
43 {
44 $this->tpl->setVariable(
45 "ICON",
46 ilUtil::img(ilObject::_getIcon((int) $set["obj_id"], "tiny"), $set["type_txt"])
47 );
48 $this->tpl->setVariable("TITLE", $set["title"]);
49 $this->tpl->setVariable("CMD", $set["cmd"]);
50 }
51}
fillRow(array $set)
Standard Version of Fill Row.
__construct(?object $parent_obj, string $parent_cmd)
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
setFormAction(string $a_form_action, bool $a_multipart=false)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
static img(string $a_src, ?string $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc