3 declare(strict_types=1);
29 public function __construct(
object $a_parent_obj,
string $a_parent_cmd)
33 $this->review = $DIC->rbac()->review();
37 $this->
addColumn($this->
lng->txt(
'title'),
'title',
"70%");
38 $this->
addColumn($this->
lng->txt(
'context'),
'context',
"30%");
41 $this->
setRowTemplate(
"tpl.show_role_selection_row.html",
"Services/AccessControl");
46 protected function fillRow(array $a_set): void
48 $this->tpl->setVariable(
'VAL_ID', $a_set[
'id']);
49 $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'title']);
50 if (strlen($a_set[
'description'])) {
51 $this->tpl->setVariable(
'VAL_DESC', $a_set[
'description']);
53 $this->tpl->setVariable(
'VAL_CONTEXT', $a_set[
'context']);
56 public function parse(array $entries): void
59 foreach ($entries as $entry) {
60 $tmp_arr[
'id'] = $entry[
'obj_id'];
65 $records_arr[] = $tmp_arr;
setFormAction(string $a_form_action, bool $a_multipart=false)
static _lookupTitle(int $obj_id)
setDefaultOrderField(string $a_defaultorderfield)
static _getTranslation(string $a_role_title)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
__construct(object $a_parent_obj, string $a_parent_cmd)
static _lookupDescription(int $obj_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
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)