10 use \ILIAS\Modules\OrgUnit\ARHelper\DIC;
39 $this->parent_obj = $a_parent_obj;
41 $this->
setId(self::TBL_ID);
46 parent::__construct($a_parent_obj);
47 $this->parent_obj = $a_parent_obj;
48 $this->
setRowTemplate(
'tpl.bibl_administration_fields_list_row.html',
'Modules/Bibliographic');
70 $this->
addColumn($this->lng()->txt(
'order'));
71 $this->
addColumn($this->lng()->txt(
'identifier'));
72 $this->
addColumn($this->lng()->txt(
'translation'));
73 $this->
addColumn($this->lng()->txt(
'standard'));
74 $this->
addColumn($this->lng()->txt(
'actions'),
'',
'150px');
80 $field =
new ilTextInputGUI($this->lng()->txt(
'identifier'),
'identifier');
93 $this->filter[$field->
getPostVar()] = $field->getChecked();
95 $this->filter[$field->
getPostVar()] = $field->getValue();
107 $field = $this->facade->fieldFactory()->findById($a_set[
'id']);
109 $this->tpl->setVariable(
'FIELD_ID', $field->getId());
110 $this->tpl->setCurrentBlock(
"POSITION");
111 $this->tpl->setVariable(
'POSITION_VALUE', $this->position_index);
112 $this->tpl->parseCurrentBlock();
114 $this->tpl->setCurrentBlock(
"IDENTIFIER");
115 $this->tpl->setVariable(
'IDENTIFIER_VALUE', $field->getIdentifier());
116 $this->tpl->parseCurrentBlock();
118 $this->tpl->setCurrentBlock(
"TRANSLATION");
119 $this->tpl->setVariable(
'VAL_TRANSLATION', $this->facade->translationFactory()->translate($field));
120 $this->tpl->parseCurrentBlock();
122 $this->tpl->setCurrentBlock(
"STANDARD");
123 if ($field->getIsStandardField()) {
124 $this->tpl->setVariable(
'IS_STANDARD_VALUE', $this->lng()->txt(
"standard"));
126 $this->tpl->setVariable(
'IS_STANDARD_VALUE', $this->lng()->txt(
"custom"));
129 $this->tpl->parseCurrentBlock();
133 $this->position_index++;
143 $selectionList->setListTitle($this->lng->txt(
"actions"));
151 $txt = $this->lng()->txt(
"translate");
152 $selectionList->addItem(
$txt,
"", $this->ctrl()
155 $this->tpl->setVariable(
'VAL_ACTIONS', $selectionList->getHTML());
166 foreach ($this->filter as $filter_key => $filter_value) {
167 switch ($filter_key) {
170 $filter->setFieldName($filter_key);
171 $filter->setFieldValue(
'%' . $filter_value .
'%');
177 $q->setSortingColumn(
'position');
178 $q->setSortingDirection(
'ASC');
181 $data = $this->facade->fieldFactory()
182 ->filterAllFieldsForTypeAsArray($this->facade->type(), $q);
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
setExternalSorting($a_val)
Set external sorting.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
Interface ilBiblFactoryFacadeInterface.
Interface ilBiblEntryInterface.
setExternalSegmentation($a_val)
Set external segmentation.
addFilterItem($a_input_item, $a_optional=false)
Add filter item.
determineLimit()
Determine the limit.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
Class ilBiblTableQueryInfo.
This class represents a text property in a property form.
getFormAction()
Get Form action parameter.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addAndReadFilterItem(ilFormPropertyGUI $field)
addActionMenu(ilBiblFieldInterface $field)
Class ilBiblAdminFieldTableGUI.
Class ilBiblTableQueryInfo.
determineOffsetAndOrder($a_omit_offset=false)
Determine offset and order.
User interface class for advanced drop-down selection lists.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setFormName($a_formname="")
Set Form name.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
__construct($a_parent_obj, ilBiblAdminFactoryFacadeInterface $facade)
ilBiblAdminFieldTableGUI constructor.
setEnableHeader($a_enableheader)
Set Enable Header.
fillRow($a_set)
Fills table rows with content from $a_set.