16        parent::__construct($a_parent_obj);
 
   18        $this->
setId(
'dcl_tableviews');
 
   19        $this->
setTitle(
$lng->txt(
'dcl_tableview_fieldsettings'));
 
   21        $this->
addColumn(
$lng->txt(
'dcl_field_visible'), 
null, 
'auto');
 
   24        $this->
addColumn(
$lng->txt(
'dcl_filter_changeable'), 
null, 
'auto');
 
   26        $ilCtrl->saveParameter($this, 
'tableview_id');
 
   33        $this->
setRowTemplate(
'tpl.tableview_fields_row.html', 
'Modules/DataCollection');
 
   42        $this->
parseData($a_parent_obj->tableview->getFieldSettings());
 
   49        if (!$this->parent_obj->table->getPublicCommentsEnabled()) {
 
   51                if ($rec->getField() == 
'comments') {
 
   65        $field = $a_set->getFieldObject();
 
   66        if ($field->getId() == 
'comments' && !$this->parent_obj->table->getPublicCommentsEnabled()) {
 
   70        $this->tpl->setVariable(
'FIELD_TITLE', $field->getTitle());
 
   71        $this->tpl->setVariable(
'ID', $a_set->getId());
 
   72        $this->tpl->setVariable(
'FIELD_ID', $a_set->getField());
 
   73        $this->tpl->setVariable(
'VISIBLE', $a_set->isVisible() ? 
'checked' : 
'');
 
   74        if ($field->allowFilterInListView()) {
 
   75            $this->tpl->setVariable(
'IN_FILTER', $a_set->isInFilter() ? 
'checked' : 
'');
 
   76            $this->tpl->setVariable(
'FILTER_VALUE', $this->
getStandardFilterHTML($field, $a_set->getFilterValue()));
 
   77            $this->tpl->setVariable(
'FILTER_CHANGEABLE', $a_set->isFilterChangeable() ? 
'checked' : 
'');
 
   79            $this->tpl->setVariable(
'NO_FILTER', 
'');
 
   94        $field_representation->addFilterInputFieldToTable($this);
 
   95        $filter = end($this->filters);
 
   96        $this->filters = array();
 
   97        $filter->setValueByArray($value);
 
   99        return $filter->render();
 
An exception for terminatinating execution or to throw for unit testing.
Class ilDclBaseFieldModel.
static getFieldRepresentationInstance(ilDclBaseFieldModel $field)
Returns FieldRepresentation from BaseFieldModel.
Class ilDclTableViewEditFieldsTableGUI.
getStandardFilterHTML(ilDclBaseFieldModel $field, $value)
__construct(ilDclTableViewEditGUI $a_parent_obj)
Class ilDclTableViewEditGUI.
setTopCommands($a_val)
Set top commands (display command buttons on top of table, too)
setEnableHeader($a_enableheader)
Set Enable Header.
setExternalSorting($a_val)
Set external sorting.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
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.
setExternalSegmentation($a_val)
Set external segmentation.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setShowTemplates($a_value)
Toggle templates.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.