19 declare(strict_types=1);
30 public function __construct(
object $a_parent_obj,
string $a_parent_cmd)
34 $this->review = $DIC[
'rbacreview'];
38 $this->
addColumn($this->
lng->txt(
'title'),
'title',
"70%");
39 $this->
addColumn($this->
lng->txt(
'context'),
'context',
"30%");
42 $this->
setRowTemplate(
"tpl.show_role_selection_row.html",
"Services/AccessControl");
47 protected function fillRow(array $a_set): void
49 $this->tpl->setVariable(
'VAL_ID', $a_set[
'id']);
50 $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'title']);
51 if (strlen($a_set[
'description'])) {
52 $this->tpl->setVariable(
'VAL_DESC', $a_set[
'description']);
54 $this->tpl->setVariable(
'VAL_CONTEXT', $a_set[
'context']);
57 public function parse(array $entries): void
60 foreach ($entries as $entry) {
61 $role =
new ilObjRole($entry[
'obj_id'],
false);
62 $tmp_arr[
'id'] = $entry[
'obj_id'];
63 $tmp_arr[
'title'] = strip_tags(
64 $role->getPresentationTitle()
66 $tmp_arr[
'description'] = strip_tags(
67 $role->getDescription()
69 $tmp_arr[
'context'] = strip_tags(
73 $records_arr[] = $tmp_arr;
setFormAction(string $a_form_action, bool $a_multipart=false)
static _lookupTitle(int $obj_id)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
__construct(object $a_parent_obj, string $a_parent_cmd)
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)