Sample template. Will be ignored
user. Mostra file Open project: atk4/atk4 Class Usage ExamplesProperty | Type | Description | |
---|---|---|---|
$even_css_class | Used CSS class for even rows | ||
$odd_css_class | Used CSS class for odd rows | ||
$row_t | Item ($item_tag) template | ||
$sep_html | Separator | ||
$total_rows | integer | After rendering will contain data row count | |
$totals | array | boolean | Will contain accumulated totals for all fields | |
$totals_t | Template | Will be initialized to "totals" template when _addTotals() is called |
Property | Type | Description | |
---|---|---|---|
$container_tag | Template tag for container | ||
$item_tag | Template tag for item | ||
$odd_even | Is current odd or even row? | ||
$totals_type | string | Should be changed using addTotals and addGrandTotals methods only |
Method | Description | |
---|---|---|
addGrandTotals ( array $fields = UNDEFINED ) | Enable totals calculation for specified array of fields. | |
addTotals ( array $fields = UNDEFINED ) | Enable totals calculation for specified array of fields. | |
defaultTemplate ( ) : array | Default template. | |
formatRow ( ) | Format lister row. | |
formatTotalsRow ( ) | Additional formatting for Totals row. | |
init ( ) | Initialization. | |
removeTotals ( ) | Disable totals calculation. | |
render ( ) | Render lister. | |
renderDataRow ( ) | Render data row. | |
renderRows ( ) | Render lister rows. | |
renderSeparator ( ) | ||
renderTotalsRow ( ) | Render Totals row. | |
updateGrandTotals ( ) | Calculate grand totals of all rows. | |
updateTotals ( ) | Add current rendered row values to totals. |
Method | Description | |
---|---|---|
_addTotals ( array $fields = UNDEFINED, string $type = null ) | Private method to enable / disable totals calculation for specified array of fields. |
protected _addTotals ( array $fields = UNDEFINED, string $type = null ) | ||
$fields | array | optional array of fieldnames |
$type | string | type of totals calculation (null|onRender|onRequest) |
public addGrandTotals ( array $fields = UNDEFINED ) | ||
$fields | array | optional array of fieldnames |
public updateGrandTotals ( ) |
public int $total_rows | ||
return | integer |
public Template $totals_t | ||
return | Template |
protected string $totals_type | ||
return | string |