AnewtGridCellRendererCount class

Cell renderer that just prints the row number.

Class Overview

Cell renderer that just prints the row number.

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.

See also

Public Methods

AnewtGridCellRendererCount($id, $initial_value=null)

Construct new AnewtGridCellRendererCount instance.

Parameters

$id

Cell renderer id

$initial_value

The initial value for the counter. Defaults to 1, but can be changed e.g. paginated grid listings.

render_cell($data)

Renders the cell.

Parameters

$data

Data to pack into the cell

Return value

Rendered cell

set_value($new_value)

Set the counter to another value.

Parameters

$new_value

The next value to use

Private Attributes

$_value [private]

Row counter value.

Inheritance

Base Classes

Inherited members