ILIAS  release_8 Revision v8.24
class.ilPCIIMPopupTableGUI.php
Go to the documentation of this file.
1<?php
2
25{
27
28 public function __construct(
29 object $a_parent_obj,
30 string $a_parent_cmd,
31 ilPCInteractiveImage $a_content_obj
32 ) {
33 global $DIC;
34
35 $this->ctrl = $DIC->ctrl();
36 $this->lng = $DIC->language();
37 $ilCtrl = $DIC->ctrl();
38 $lng = $DIC->language();
39
40 parent::__construct($a_parent_obj, $a_parent_cmd);
41
42 $this->addColumn("", "", "1");
43 $this->addColumn($lng->txt("title"), "", "100%");
44 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
45 $this->setRowTemplate(
46 "tpl.iim_popup_content_row.html",
47 "Services/COPage"
48 );
49
50 $this->content_obj = $a_content_obj;
51 $this->setData($this->content_obj->getPopups());
52 $this->setLimit(0);
53
54 $this->addMultiCommand("confirmPopupDeletion", $lng->txt("delete"));
55 $this->addCommandButton("savePopups", $lng->txt("cont_save_all_titles"));
56
57 $this->setTitle($lng->txt("cont_content_popups"));
58 }
59
60 protected function fillRow(array $a_set): void
61 {
62 $this->tpl->setVariable("TID", $a_set["hier_id"] . ":" . $a_set["pc_id"]);
63 $this->tpl->setVariable("TITLE", ilLegacyFormElementsUtil::prepareFormOutput($a_set["title"]));
64 }
65}
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static prepareFormOutput($a_str, bool $a_strip=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilPCInteractiveImage $content_obj
fillRow(array $a_set)
Standard Version of Fill Row.
__construct(object $a_parent_obj, string $a_parent_cmd, ilPCInteractiveImage $a_content_obj)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setLimit(int $a_limit=0, int $a_default_limit=0)
set max.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
addMultiCommand(string $a_cmd, string $a_text)
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.
setData(array $a_data)
Set table data.
ilLanguage $lng
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc