ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilRoleAdoptPermissionTableGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27{
28 public function __construct(object $a_parent_obj, string $a_parent_cmd)
29 {
30 $this->setId("adopt_permission");
31 parent::__construct($a_parent_obj, $a_parent_cmd);
32
33 $this->addColumn("");
34 $this->addColumn($this->lng->txt("title"), "title", "70%");
35 $this->addColumn($this->lng->txt("type"), "type", "30%");
36 $this->setEnableHeader(true);
37 $this->setFormAction($this->ctrl->getFormAction($a_parent_obj));
38 $this->setRowTemplate(
39 "tpl.obj_role_adopt_permission_row.html",
40 "components/ILIAS/AccessControl"
41 );
42 $this->addCommandButton("perm", $this->lng->txt("cancel"));
43 $this->addMultiCommand("adoptPermSave", $this->lng->txt("save"));
44
45 $this->setLimit(9999);
46 }
47
51 protected function fillRow(array $a_set): void
52 {
53 $this->tpl->setVariable("PARAM", "adopt");
54 $this->tpl->setVariable("VAL_ID", $a_set["role_id"]);
55 $this->tpl->setVariable("VAL_TITLE", $a_set["role_name"]);
56 if (is_string($a_set["role_desc"]) && $a_set["role_desc"] !== '') {
57 $this->tpl->setVariable("VAL_DESCRIPTION", $a_set["role_desc"]);
58 }
59 $this->tpl->setVariable("VAL_TYPE", $a_set["type"]);
60 }
61}
__construct(object $a_parent_obj, string $a_parent_cmd)
fillRow(array $a_set)
Fill a single data row.
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.
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)
setEnableHeader(bool $a_enableheader)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setId(string $a_val)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc