AnewtGridCellRendererCount Class Reference

Cell renderer that just prints the row number. More...

List of all members.

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.


Detailed Description

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:
AnewtGridRenderer::add_count_column

Definition at line 162 of file cell.lib.php.


Member Function Documentation

AnewtGridCellRendererCount::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.

Definition at line 176 of file cell.lib.php.

AnewtGridCellRendererCount::render_cell ( data  ) 

Renders the cell.

Parameters:
$data Data to pack into the cell
Returns:
Rendered cell

Reimplemented from AnewtGridCellRenderer.

Definition at line 195 of file cell.lib.php.

AnewtGridCellRendererCount::set_value ( new_value  ) 

Set the counter to another value.

Parameters:
$new_value The next value to use

Definition at line 206 of file cell.lib.php.


The documentation for this class was generated from the following file:

Generated on Sun Aug 2 22:54:37 2009 for Anewt by  doxygen 1.5.9