27 public function __construct($a_parent_obj, $command =
'', $a_template_context =
'')
29 parent::__construct($a_parent_obj, $command, $a_template_context);
39 isset($column[
'sortable']) && $column[
'sortable'] ? $column[
'field'] :
'',
40 isset($column[
'width']) ? $column[
'width'] :
'',
41 isset($column[
'is_checkbox']) ? (
bool) $column[
'is_checkbox'] :
false 94 return trim($row[$column]);
103 return isset($column[
'optional']) && $column[
'optional'];
108 $columns[$column[
'field']] = $column;
121 if (array_key_exists($index, $columnDefinition)) {
122 $column = $columnDefinition[
$index];
123 if (isset($column[
'optional']) && !$column[
'optional']) {
128 is_array($this->visibleOptionalColumns) &&
129 array_key_exists($column[
'field'], $this->visibleOptionalColumns)
150 $this->tpl->setCurrentBlock(
'column');
152 if ((
string) $value ===
'') {
153 $this->tpl->touchBlock(
'column');
155 $this->tpl->setVariable(
'COLUMN_VALUE', $value);
158 $this->tpl->parseCurrentBlock();
191 $filter = (array) $this->filter;
193 foreach ($this->optional_filter as
$key => $value) {
getExternalSorting()
Get external sorting.
resetOffset($a_in_determination=false)
Reset offset.
onBeforeDataFetched(array &$params, array &$filter)
getOrderDirection()
Get order direction.
Interface ilTermsOfServiceTableDataProvider.
getExternalSegmentation()
Get external segmentation.
getSelectedColumns()
Get selected columns.
isFilterSelected($a_col)
Is given filter selected?
determineOffsetAndOrder($a_omit_offset=false)
Determine offset and order.
determineSelectedFilters()
Determine selected filters.
__construct($a_parent_obj, $command='', $a_template_context='')
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.
isColumnVisible(int $index)
prepareRow(array &$row)
This method can be used to add some field values dynamically or manipulate existing values of the tab...
setMaxCount($a_max_count)
set max.
formatCellValue(string $column, array $row)
Define a final formatting for a cell value.
preProcessData(array &$data)
setProvider(\ilTermsOfServiceTableDataProvider $provider)