24     use \ILIAS\Modules\OrgUnit\ARHelper\DIC;
    26     public const TBL_ID = 
'tbl_bibl_fields';
    27     protected \ilBiblAdminFactoryFacadeInterface 
$facade;
    38         $this->parent_obj = $a_parent_obj;
    40         $this->
setId(self::TBL_ID);
    46         $this->parent_obj = $a_parent_obj;
    47         $this->
setRowTemplate(
'tpl.bibl_administration_fields_list_row.html', 
'Modules/Bibliographic');
    60         if ($this->parent_obj->checkPermissionBoolAndReturn(
'write')) {
    74         $this->
addColumn($this->
lng()->txt(
'actions'), 
'', 
'150px');
    86         $field->readFromSession();
    87         $this->
filter[$field->getPostVar()] = $field instanceof 
ilCheckboxInputGUI ? $field->getChecked() : $field->getValue();
    93     public function fillRow(array $a_set): void
    95         $field = $this->facade->fieldFactory()->findById($a_set[
'id']);
    97         $this->tpl->setVariable(
'FIELD_ID', $field->getId());
    98         $this->tpl->setCurrentBlock(
"POSITION");
    99         $this->tpl->setVariable(
'POSITION_VALUE', $this->position_index);
   100         $this->tpl->parseCurrentBlock();
   102         $this->tpl->setCurrentBlock(
"IDENTIFIER");
   103         $this->tpl->setVariable(
'IDENTIFIER_VALUE', $field->getIdentifier());
   104         $this->tpl->parseCurrentBlock();
   106         $this->tpl->setCurrentBlock(
"TRANSLATION");
   107         $this->tpl->setVariable(
'VAL_TRANSLATION', $this->facade->translationFactory()->translate($field));
   108         $this->tpl->parseCurrentBlock();
   110         $this->tpl->setCurrentBlock(
"STANDARD");
   111         if ($field->isStandardField()) {
   112             $this->tpl->setVariable(
'IS_STANDARD_VALUE', $this->
lng()->txt(
'standard'));
   114             $this->tpl->setVariable(
'IS_STANDARD_VALUE', $this->
lng()->txt(
'custom'));
   117         $this->tpl->parseCurrentBlock();
   118         if ($this->parent_obj->checkPermissionBoolAndReturn(
'write')) {
   122         $this->position_index++;
   127         $this->
ctrl()->setParameter(
   132         $this->
ctrl()->setParameterByClass(
   133             ilBiblTranslationGUI::class,
   139         $action_entries[
'translate'] = $this->
ui()->factory()->button()->shy(
   140             $this->
lng()->txt(
'translate'),
   144         $actions = $this->
ui()->factory()->dropdown()->standard($action_entries)->withLabel($this->
lng->txt(
"actions"));
   145         $rendered_actions = $this->
ui()->renderer()->render($actions);
   147         $this->tpl->setVariable(
'VAL_ACTIONS', $rendered_actions);
   157         foreach ($this->
filter as $filter_key => $filter_value) {
   158             switch ($filter_key) {
   161                     $filter->setFieldName($filter_key);
   162                     $filter->setFieldValue(
'%' . $filter_value . 
'%');
   163                     $filter->setOperator(
"LIKE");
   164                     $q->addFilter($filter);
   168         $q->setSortingColumn(
'position');
   169         $q->setSortingDirection(
'ASC');
   171         $data = $this->facade->fieldFactory()
   172                              ->filterAllFieldsForTypeAsArray($this->facade->type(), 
$q);
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
addFilterItem(ilTableFilterItem $a_input_item, bool $a_optional=false)
 
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
 
ilBiblAdminFactoryFacadeInterface $facade
 
setFormName(string $a_name="")
 
__construct(?object $a_parent_obj, ilBiblAdminFactoryFacadeInterface $facade)
ilBiblAdminFieldTableGUI constructor. 
 
setExternalSorting(bool $a_val)
 
setDefaultOrderField(string $a_defaultorderfield)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
setDefaultOrderDirection(string $a_defaultorderdirection)
 
addActionMenu(ilBiblFieldInterface $field)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
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)
 
filter(string $filter_id, $class_path, string $cmd, bool $activated=true, bool $expanded=true)
 
addAndReadFilterItem(ilTableFilterItem $field)
 
fillRow(array $a_set)
Fills table rows with content from $a_set. 
 
determineOffsetAndOrder(bool $a_omit_offset=false)
 
setEnableHeader(bool $a_enableheader)
 
setExternalSegmentation(bool $a_val)
 
setPrefix(string $a_prefix)