14 $ilCtrl = $DIC[
'ilCtrl'];
17 $this->
setId(
'dcl_tableviews');
18 $this->
setTitle(
$lng->txt(
'dcl_tableview_fieldsettings'));
19 $this->
addColumn(
$lng->txt(
'dcl_tableview_fieldtitle'), null,
'auto');
20 $this->
addColumn(
$lng->txt(
'dcl_tableview_field_access'), null,
'auto');
22 $ilCtrl->saveParameter($this,
'tableview_id');
23 $this->
setFormAction($ilCtrl->getFormActionByClass(
'ildcleditviewdefinitiongui'));
29 $this->
setRowTemplate(
'tpl.tableview_edit_view.html',
'Modules/DataCollection');
38 $this->
parseData($a_parent_obj->tableview->getFieldSettings());
55 $field = $a_set->getFieldObject();
57 if (!$field->isStandardField() || $field->getId() ===
'owner') {
58 $this->tpl->setVariable(
'TEXT_VISIBLE',
$lng->txt(
'dcl_tableview_visible'));
59 $this->tpl->setVariable(
'TEXT_REQUIRED_VISIBLE',
$lng->txt(
'dcl_tableview_required_visible'));
60 $this->tpl->setVariable(
'TEXT_LOCKED_VISIBLE',
$lng->txt(
'dcl_tableview_locked_visible'));
61 $this->tpl->setVariable(
'TEXT_NOT_VISIBLE',
$lng->txt(
'dcl_tableview_not_visible'));
62 $this->tpl->setVariable(
'IS_LOCKED', $a_set->isLockedEdit() ?
'checked' :
'');
63 $this->tpl->setVariable(
'IS_REQUIRED', $a_set->isRequiredEdit() ?
'checked' :
'');
64 $this->tpl->setVariable(
'DEFAULT_VALUE', $a_set->getDefaultValue());
65 $this->tpl->setVariable(
'IS_VISIBLE', $a_set->isVisibleEdit() ?
'checked' :
'');
66 $this->tpl->setVariable(
'IS_NOT_VISIBLE', !$a_set->isVisibleEdit() ?
'checked' :
'');
68 $this->tpl->setVariable(
'HIDDEN',
'hidden');
71 $this->tpl->setVariable(
'FIELD_ID', $a_set->getField());
72 $this->tpl->setVariable(
'TITLE', $field->getTitle());
73 $this->tpl->parseCurrentBlock();
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
setExternalSorting($a_val)
Set external sorting.
setShowTemplates($a_value)
Toggle templates.
Class ilDclEditViewDefinitionGUI.
setExternalSegmentation($a_val)
Set external segmentation.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setTopCommands($a_val)
Set top commands (display command buttons on top of table, too)
setRowTemplate($a_template, $a_template_dir="")
Set row template.
__construct(ilDclEditViewDefinitionGUI $a_parent_obj)
Class ilDclEditViewTableGUI.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
__construct(Container $dic, ilPlugin $plugin)
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.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setEnableHeader($a_enableheader)
Set Enable Header.
setEnableTitle($a_enabletitle)
Set Enable Title.