3 declare(strict_types=1);
    46     public function __construct(
object $a_parent_obj, 
string $a_parent_cmd, 
bool $a_enable_editing = 
false)
    48         $this->enable_editing = $a_enable_editing;
    55     protected function fillRow(array $a_set): void
    57         $this->tpl->setVariable(
'OBJ_SRC', $a_set[
'icon']);
    58         $this->tpl->setVariable(
'OBJ_ALT', $a_set[
'icon_alt']);
    59         $this->tpl->setVariable(
'OBJ_TITLE', $a_set[
'title']);
    60         $this->tpl->setVariable(
'OBJ_LINK', ilLink::_getLink($a_set[
'ref_id']));
    61         $this->tpl->setVariable(
'OBJ_DESCRIPTION', $a_set[
'description']);
    62         $this->tpl->setVariable(
'COND_ID', $a_set[
'id']);
    63         $this->tpl->setVariable(
'OBJ_CONDITION', $a_set[
'condition']);
    65         if (!$this->enable_editing) {
    66             $this->tpl->setCurrentBlock(
"obligatory_static");
    67             $this->tpl->setVariable(
    71             $this->tpl->setVariable(
    73                 $this->
lng->txt($a_set[
'obligatory'] ?
    74                     'precondition_obligatory_alt' :
    75                     'precondition_not_obligatory_alt')
    77             $this->tpl->parseCurrentBlock();
    79             $this->tpl->setCurrentBlock(
"obligatory_edit");
    80             $this->tpl->setVariable(
'OBL_ID', $a_set[
'id']);
    81             $this->tpl->setVariable(
'OBL_STATUS', $a_set[
'obligatory'] ? 
' checked="checked"' : 
'');
    82             $this->tpl->parseCurrentBlock();
    86             $this->
ctrl->setParameterByClass(get_class($this->
getParentObject()), 
'condition_id', $a_set[
'id']);
    87             $this->tpl->setVariable(
    92         $this->tpl->setVariable(
'TXT_EDIT', $this->
lng->txt(
'edit'));
   102         foreach ($a_conditions as $condition) {
   103             if ($condition[
'trigger_type'] === 
'crsg') {
   106             $row[
'id'] = $condition[
'condition_id'];
   107             $row[
'ref_id'] = $condition[
'trigger_ref_id'];
   108             $row[
'type'] = $condition[
'trigger_type'];
   112             $row[
'icon_alt'] = $this->
lng->txt(
'obj_' . $condition[
'trigger_type']);
   113             $row[
'condition'] = $this->
lng->txt(
'condition_' . $condition[
'operator']);
   114             $row[
'obligatory'] = $condition[
'obligatory'];
   126         $this->
lng->loadLanguageModule(
'rbac');
   128         $this->
setRowTemplate(
'tpl.condition_handler_row.html', 
'Services/Conditions');
   129         $this->
setTitle($this->
lng->txt(
'active_preconditions'));
   131         $this->
addColumn($this->
lng->txt(
'rbac_precondition_source'), 
'title', 
'66%');
   132         $this->
addColumn($this->
lng->txt(
'condition'), 
'condition');
   133         $this->
addColumn($this->
lng->txt(
'precondition_obligatory'), 
'obligatory');
   136         $this->
enable(
'select_all');
   145         if ($this->enable_editing) {
   146             $this->
addCommandButton(
"saveObligatoryList", $this->
lng->txt(
"rbac_precondition_save_obligatory"));
 
__construct(object $a_parent_obj, string $a_parent_cmd, bool $a_enable_editing=false)
 
enable(string $a_module_name)
 
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item. 
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
 
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
 
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory) 
 
setConditions(array $a_conditions)
Set and parse conditions. 
 
static _lookupTitle(int $obj_id)
 
setDefaultOrderField(string $a_defaultorderfield)
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setDefaultOrderDirection(string $a_defaultorderdirection)
 
static _lookupDescription(int $obj_id)
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
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)
 
addMultiCommand(string $a_cmd, string $a_text)