25 $ilCtrl = $DIC[
'ilCtrl'];
28 $this->
setId(
'dcl_tableviews');
36 $ilCtrl->saveParameter($this,
'tableview_id');
37 $this->
setFormAction($ilCtrl->getFormActionByClass(
'ildcltablevieweditgui'));
43 $this->
setRowTemplate(
'tpl.tableview_fields_row.html',
'Modules/DataCollection');
52 $this->
parseData($a_parent_obj->tableview->getFieldSettings());
58 if (!$this->parent_obj->table->getPublicCommentsEnabled()) {
59 foreach ($data as
$key => $rec) {
60 if ($rec->getField() ==
'comments') {
91 if ($this->form_multipart) {
92 $this->tpl->touchBlock(
"form_multipart_bl");
96 $this->tpl->touchBlock(
"pdfs");
99 $this->tpl->setCurrentBlock(
"tbl_form_header");
100 $this->tpl->setVariable(
"FORMACTION", $this->
getFormAction() . $hash);
101 $this->tpl->setVariable(
"FORMNAME", $this->
getFormName());
102 $this->tpl->parseCurrentBlock();
106 $this->tpl->touchBlock(
"tbl_form_footer");
110 if (!$this->enabled[
'content']) {
120 $this->
setFooter(
"tblfooter", $this->
lng->txt(
"previous"), $this->
lng->txt(
"next"));
146 $this->tpl->addBlockFile(
150 $this->row_template_dir
153 foreach ($data as $set) {
154 $this->tpl->setCurrentBlock(
"tbl_content");
155 $this->css_row = ($this->css_row !==
"tblrow1")
158 $this->tpl->setVariable(
"CSS_ROW", $this->css_row);
161 $this->tpl->setCurrentBlock(
"tbl_content");
162 $this->tpl->parseCurrentBlock();
170 $this->css_row = ($this->css_row !==
"tblrow1")
174 $this->tpl->setCurrentBlock(
"tbl_no_entries");
175 $this->tpl->setVariable(
'TBL_NO_ENTRY_CSS_ROW', $this->css_row);
176 $this->tpl->setVariable(
'TBL_NO_ENTRY_COLUMN_COUNT', $this->column_count);
177 $this->tpl->setVariable(
'TBL_NO_ENTRY_TEXT', trim($no_items_text));
178 $this->tpl->parseCurrentBlock();
199 $field = $a_set->getFieldObject();
200 if ($field->getId() ==
'comments' && !$this->parent_obj->table->getPublicCommentsEnabled()) {
204 $this->tpl->setVariable(
'FIELD_TITLE', $field->getTitle());
205 $this->tpl->setVariable(
'ID', $a_set->getId());
206 $this->tpl->setVariable(
'FIELD_ID', $a_set->getField());
207 $this->tpl->setVariable(
'VISIBLE', $a_set->isVisibleInList() ?
'checked' :
'');
208 if ($field->allowFilterInListView()) {
209 $this->tpl->setVariable(
'IN_FILTER', $a_set->isInFilter() ?
'checked' :
'');
210 $this->tpl->setVariable(
'FILTER_VALUE', $this->
getStandardFilterHTML($field, $a_set->getFilterValue()));
211 $this->tpl->setVariable(
'FILTER_CHANGEABLE', $a_set->isFilterChangeable() ?
'checked' :
'');
213 $this->tpl->setVariable(
'NO_FILTER',
'');
223 $field_representation->addFilterInputFieldToTable($this);
224 $filter = end($this->filters);
225 $this->filters = array();
226 $filter->setValueByArray($value);
228 return $filter->render();
numericOrdering(string $a_field)
Should this field be sorted numeric?
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
prepareOutput()
Anything that must be done before HTML is generated.
setTopCommands(bool $a_val)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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="")
__construct(Container $dic, ilPlugin $plugin)
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)