Claro_Utils_Datagrid Class Reference
Detailed Description
Definition at line 19 of file datagrid.lib.php.
Constructor & Destructor Documentation
| __construct |
( |
$ |
attributes = null |
) |
|
- Parameters:
-
| array | $attributes attributes of the table element |
Definition at line 36 of file datagrid.lib.php.
Member Function Documentation
| addColumn |
( |
$ |
key, |
|
|
$ |
label, |
|
|
$ |
value | |
|
) |
| | |
Add a column at the end of the datagrid rows
- Parameters:
-
| string | $key identifier of the column |
| string | $label title of the column |
| string | $value template or value of the collumn cells |
Definition at line 97 of file datagrid.lib.php.
| addDataColumn |
( |
$ |
key, |
|
|
$ |
label | |
|
) |
| | |
Add a column matching a given one in the data rows
- Parameters:
-
| string | $key identifier of the column in the data rows |
| string | $label title of the column |
Definition at line 109 of file datagrid.lib.php.
| prependColumn |
( |
$ |
key, |
|
|
$ |
label, |
|
|
$ |
value | |
|
) |
| | |
Add a column at the start of the datagrid rows
- Parameters:
-
| string | $key identifier of the column |
| string | $label title of the column |
| string | $value template or value of the collumn cells |
Definition at line 84 of file datagrid.lib.php.
| renderBody |
( |
|
) |
[protected] |
| renderFooter |
( |
|
) |
[protected] |
| renderHeader |
( |
|
) |
[protected] |
| replace |
( |
$ |
key, |
|
|
$ |
value, |
|
|
$ |
output | |
|
) |
| | [protected] |
Replace the templates for a given data key by the rendered string for the given value in the given string For example if the key 'id' as the value 'zorg', id% will be replaced with 'zorg'
- Parameters:
-
| string | $key |
| string | $value |
| string | $output |
- Returns:
- string
Definition at line 222 of file datagrid.lib.php.
| setEmptyMessage |
( |
$ |
emptyMessage |
) |
|
Set the empty message displayed if the data rows are empty
- Parameters:
-
Definition at line 63 of file datagrid.lib.php.
Set the table footer
- Parameters:
-
| string | $footer content of the footer |
Definition at line 54 of file datagrid.lib.php.
Field Documentation
$columnsLabels = array() [protected] |
$columnsOrder = array() [protected] |
$columnsValues = array() [protected] |
$emptyMessage = '' [protected] |
$lineCount = 0 [protected] |
$lineNumber = 0 [protected] |
$rows = array() [protected] |
The documentation for this class was generated from the following file: