10 use \ILIAS\Modules\OrgUnit\ARHelper\DIC;
26 $this->translation_facory = $translation_factory;
27 $this->field = $bibl_field;
28 $table_id =
'bibl_trans_field_' . $bibl_field->
getId();
29 $this->
setId($table_id);
33 $this->
setRowTemplate(
"tpl.bibl_admin_translation_row.html",
"Modules/Bibliographic");
34 parent::__construct($a_parent_obj);
54 $this->
addColumn($this->lng()->txt(
'bibl_translation_select'),
'',
'15px',
true);
55 $this->
addColumn($this->lng()->txt(
'bibl_translation_lang'));
56 $this->
addColumn($this->lng()->txt(
'bibl_translation_trans'));
57 $this->
addColumn($this->lng()->txt(
'bibl_translation_desc'));
63 $data = $this->translation_facory->getAllTranslationsForFieldAsArray($this->field);
73 $translation = $this->translation_facory->findById($a_set[
'id']);
74 $this->tpl->setVariable(
'ID', $translation->getId());
75 $this->tpl->setVariable(
'LANGUAGE', $translation->getLanguageKey());
76 $this->tpl->setVariable(
'TEXT', $translation->getTranslation());
77 $this->tpl->setVariable(
'DESCRIPTION', $translation->getDescription());
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 ilBiblEntryInterface.
setExternalSegmentation($a_val)
Set external segmentation.
Class ilBiblTranslationTableGUI.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
const CMD_DELETE_TRANSLATIONS
addMultiCommand($a_cmd, $a_text)
Add Command button.
getFormAction()
Get Form action parameter.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
__construct($a_parent_obj, ilBiblFieldInterface $bibl_field, ilBiblTranslationFactoryInterface $translation_factory)
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.
setEnableHeader($a_enableheader)
Set Enable Header.
const CMD_SAVE_TRANSLATIONS