Public Member Functions | |
| AnewtGridCellRendererCount ($id, $initial_value=null) | |
| Construct new AnewtGridCellRendererCount instance. | |
| render_cell ($data) | |
| Renders the cell. | |
| set_value ($new_value) | |
| Set the counter to another value. | |
Private Attributes | |
| $_value | |
| Row counter value. | |
You can use this for the first column to display a counter. Most of the times you will not need to use this class directly, since AnewtGridRenderer::add_count_column covers most use cases.
Definition at line 162 of file cell.lib.php.
| AnewtGridCellRendererCount::AnewtGridCellRendererCount | ( | $ | id, | |
| $ | initial_value = null | |||
| ) |
Construct new AnewtGridCellRendererCount instance.
| $id | Cell renderer id | |
| $initial_value | The initial value for the counter. Defaults to 1, but can be changed e.g. paginated grid listings. |
Definition at line 176 of file cell.lib.php.
| AnewtGridCellRendererCount::render_cell | ( | $ | data | ) |
Renders the cell.
| $data | Data to pack into the cell |
Reimplemented from AnewtGridCellRenderer.
Definition at line 195 of file cell.lib.php.
| AnewtGridCellRendererCount::set_value | ( | $ | new_value | ) |
Set the counter to another value.
| $new_value | The next value to use |
Definition at line 206 of file cell.lib.php.
1.5.9