19 declare(strict_types=1);
    27         $ilCtrl = $DIC[
'ilCtrl'];
    30         $this->
setId(
'dcl_tableviews');
    38         $ilCtrl->saveParameter($this, 
'tableview_id');
    39         $this->
setFormAction($ilCtrl->getFormActionByClass(ilDclTableViewEditGUI::class));
    45         $this->
setRowTemplate(
'tpl.tableview_fields_row.html', 
'Modules/DataCollection');
    54         $this->
parseData($a_parent_obj->tableview->getFieldSettings());
    60         if (!$this->parent_obj->table->getPublicCommentsEnabled()) {
    61             foreach ($data as 
$key => $rec) {
    62                 if ($rec->getField() == 
'comments') {
    93                 if ($this->form_multipart) {
    94                     $this->tpl->touchBlock(
"form_multipart_bl");
    98                     $this->tpl->touchBlock(
"pdfs");
   101                 $this->tpl->setCurrentBlock(
"tbl_form_header");
   102                 $this->tpl->setVariable(
"FORMACTION", $this->
getFormAction() . $hash);
   103                 $this->tpl->setVariable(
"FORMNAME", $this->
getFormName());
   104                 $this->tpl->parseCurrentBlock();
   108                 $this->tpl->touchBlock(
"tbl_form_footer");
   112         if (!$this->enabled[
'content']) {
   122         $this->
setFooter(
"tblfooter", $this->
lng->txt(
"previous"), $this->
lng->txt(
"next"));
   148             $this->tpl->addBlockFile(
   152                 $this->row_template_dir
   155             foreach ($data as $set) {
   156                 $this->tpl->setCurrentBlock(
"tbl_content");
   157                 $this->css_row = ($this->css_row !== 
"tblrow1")
   160                 $this->tpl->setVariable(
"CSS_ROW", $this->css_row);
   163                 $this->tpl->setCurrentBlock(
"tbl_content");
   164                 $this->tpl->parseCurrentBlock();
   172             $this->css_row = ($this->css_row !== 
"tblrow1")
   176             $this->tpl->setCurrentBlock(
"tbl_no_entries");
   177             $this->tpl->setVariable(
'TBL_NO_ENTRY_CSS_ROW', $this->css_row);
   178             $this->tpl->setVariable(
'TBL_NO_ENTRY_COLUMN_COUNT', $this->column_count);
   179             $this->tpl->setVariable(
'TBL_NO_ENTRY_TEXT', trim($no_items_text));
   180             $this->tpl->parseCurrentBlock();
   201         $field = $a_set->getFieldObject();
   202         if ($field->getId() == 
'comments' && !$this->parent_obj->table->getPublicCommentsEnabled()) {
   206         $this->tpl->setVariable(
'FIELD_TITLE', $field->getTitle());
   207         $this->tpl->setVariable(
'ID', $a_set->getId());
   208         $this->tpl->setVariable(
'FIELD_ID', $a_set->getField());
   209         $this->tpl->setVariable(
'VISIBLE', $a_set->isVisibleInList() ? 
'checked' : 
'');
   210         if ($field->allowFilterInListView()) {
   211             $this->tpl->setVariable(
'IN_FILTER', $a_set->isInFilter() ? 
'checked' : 
'');
   212             $this->tpl->setVariable(
'FILTER_VALUE', $this->
getStandardFilterHTML($field, $a_set->getFilterValue()));
   213             $this->tpl->setVariable(
'FILTER_CHANGEABLE', $a_set->isFilterChangeable() ? 
'checked' : 
'');
   215             $this->tpl->setVariable(
'NO_FILTER');
   225         $field_representation->addFilterInputFieldToTable($this);
   226         $filter = end($this->filters);
   228         $filter->setValueByArray($value);
   230         return $filter->render();
 
numericOrdering(string $a_field)
Should this field be sorted numeric? 
 
prepareOutput()
Anything that must be done before HTML is generated. 
 
setTopCommands(bool $a_val)
 
ilDclTableViewEditGUI: ilDclDetailedViewDefinitionGUI  ilDclTableViewEditGUI: ilDclCreateViewDefiniti...
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
setEnableTitle(bool $a_enabletitle)
 
static getFieldRepresentationInstance(ilDclBaseFieldModel $field)
 
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
 
setShowTemplates(bool $a_value)
 
exportData(int $format, bool $send=false)
Export and optionally send current table data. 
 
setExternalSorting(bool $a_val)
 
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector. 
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
getExternalSegmentation()
 
setDefaultOrderDirection(string $a_defaultorderdirection)
 
getStandardFilterHTML(ilDclBaseFieldModel $field, array $value)
 
__construct(ilDclTableViewEditGUI $a_parent_obj)
 
getPreventDoubleSubmission()
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
setFooter(string $a_style, string $a_previous="", string $a_next="")
 
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)
 
static setUseRelativeDates(bool $a_status)
set use relative dates 
 
determineOffsetAndOrder(bool $a_omit_offset=false)
 
setEnableHeader(bool $a_enableheader)
 
setMaxCount(int $a_max_count)
set max. 
 
setExternalSegmentation(bool $a_val)
 
static sortArray(array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false)
 
fillRowFromObject(object $a_set)