3 declare(strict_types=1);
    34     public function __construct(?
object $a_parent_obj, 
string $a_parent_cmd)
    38         $this->
setId(
'available_roles' . $a_parent_obj->user->getId());
    41         $this->renderer = $DIC->ui()->renderer();
    42         $this->ui_factory = $DIC->ui()->factory();
    47         $this->
setRowTemplate(
"tpl.available_roles_status_row.html", 
"Services/AccessControl");
    49         $this->
addColumn($this->
lng->txt(
"status"), 
"status", 
"5%");
    50         $this->
addColumn($this->
lng->txt(
"role"), 
"role", 
"32%");
    52             str_replace(
" ", 
" ", $this->
lng->txt(
"info_permission_source")),
    56         $this->
addColumn(str_replace(
" ", 
" ", $this->
lng->txt(
"info_permission_origin")), 
"original_position");
    62     protected function fillRow(array $a_set): void
    66             $img_info = $this->
lng->txt(
"info_assigned");
    69             $img_info = $this->
lng->txt(
"info_not_assigned");
    71         $this->tpl->setVariable(
"ICON", $this->renderer->render(
    72             $this->ui_factory->symbol()->icon()->custom($img_path, $img_info)
    75         $link = $this->
ctrl->getLinkTargetByClass([
'ilpermissiongui'], 
'perm', 
'', 
true);
    76         $this->tpl->setVariable(
"ROLE_LINK", $link);
    77         $this->tpl->setVariable(
"TXT_ROLE", $a_set[
"role"]);
    79         if ($a_set[
"effective_from"] != 
"") {
    80             $this->tpl->setCurrentBlock(
"effective_from");
    81             $this->tpl->setVariable(
"EFFECTIVE_FROM_LINK", ilLink::_getLink($a_set[
"effective_from_ref_id"]));
    82             $this->tpl->setVariable(
"TXT_EFFECTIVE_FROM", $a_set[
"effective_from"]);
    83             $this->tpl->parseCurrentBlock();
    86         if ($a_set[
"original_position_ref_id"] !== 
false) {
    87             $this->tpl->setCurrentBlock(
"original_position_with_link");
    88             $this->tpl->setVariable(
"TXT_ORIGINAL_POSITION_WITH_LINK", $a_set[
"original_position"]);
    89             $this->tpl->setVariable(
    90                 "ORIGINAL_POSITION_LINK",
    91                 ilLink::_getLink((
int) $a_set[
"original_position_ref_id"])
    93             $this->tpl->parseCurrentBlock();
    95             $this->tpl->setVariable(
"TXT_ORIGINAL_POSITION", $a_set[
"original_position"]);
 static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory) 
 
__construct(?object $a_parent_obj, string $a_parent_cmd)
Constructor. 
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
ILIAS UI Renderer $renderer
 
setLimit(int $a_limit=0, int $a_default_limit=0)
 
fillRow(array $a_set)
Fill a single data row. 
 
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)
 
disable(string $a_module_name)
 
ILIAS UI Factory $ui_factory
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setEnableHeader(bool $a_enableheader)