ILIAS  release_8 Revision v8.24
class.ilUserActionAdminTableGUI.php
Go to the documentation of this file.
1<?php
2
23{
24 public function __construct(
25 object $a_parent_obj,
26 string $a_parent_cmd,
27 array $a_data,
28 bool $a_write_permission = false
29 ) {
30 global $DIC;
31
32 $this->ctrl = $DIC->ctrl();
33 $this->lng = $DIC->language();
34 $this->tpl = $DIC["tpl"];
35
36 parent::__construct($a_parent_obj, $a_parent_cmd);
37
38 $this->setData($a_data);
39 $this->setTitle($this->lng->txt(""));
40
41 $this->addColumn($this->lng->txt("user_action"));
42 $this->addColumn($this->lng->txt("active"), "", "1");
43
44 $this->setFormAction($this->ctrl->getFormAction($a_parent_obj));
45 $this->setRowTemplate("tpl.user_action_admin_row.html", "Services/User/Actions");
46
47 //$this->addMultiCommand("", $this->lng->txt(""));
48 if ($a_write_permission) {
49 $this->addCommandButton("save", $this->lng->txt("save"));
50 }
51 }
52
56 protected function fillRow(array $a_set): void
57 {
58 if ($a_set["active"]) {
59 $this->tpl->touchBlock("checked");
60 }
61 $this->tpl->setVariable("VAL", $a_set["action_type_name"]);
62 $this->tpl->setVariable("ACTION_ID", $a_set["action_comp_id"] . ":" . $a_set["action_type_id"]);
63 }
64}
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="")
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(object $a_parent_obj, string $a_parent_cmd, array $a_data, bool $a_write_permission=false)
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc