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()) {
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();
static sortArray(array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false)
static setUseRelativeDates(bool $a_status)
set use relative dates
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getFieldRepresentationInstance(ilDclBaseFieldModel $field)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getStandardFilterHTML(ilDclBaseFieldModel $field, array $value)
__construct(ilDclTableViewEditGUI $a_parent_obj)
fillRowFromObject(object $a_set)
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector.
getFormName()
get the name of the parent form
prepareOutput()
Anything that must be done before HTML is generated.
determineOffsetAndOrder(bool $a_omit_offset=false)
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
setExternalSegmentation(bool $a_val)
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
setEnableTitle(bool $a_enabletitle)
setShowTemplates(bool $a_value)
setFormAction(string $a_form_action, bool $a_multipart=false)
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)
setEnableHeader(bool $a_enableheader)
getExternalSegmentation()
numericOrdering(string $a_field)
Should this field be sorted numeric?
setTopCommands(bool $a_val)
setExternalSorting(bool $a_val)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
setData(array $a_data)
Set table data.
exportData(int $format, bool $send=false)
Export and optionally send current table data.
getPreventDoubleSubmission()
setMaxCount(int $a_max_count)
set max.
setFooter(string $a_style, string $a_previous="", string $a_next="")
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc