A cell renderer for the AnewtGridRenderer.
A cell renderer for the AnewtGridRenderer.
This grid renderer just renders the data as a cell (without any special effects).
__construct($id) ¶Constructs a new AnewtGridCellRenderer.
$idThe id for this cell renderer. It will be used to match against the row data in the grid.
render_cell($data) ¶Renders the cell.
$dataData to pack into the cell
Rendered cell
create_td($value) [protected] ¶Create a XHTML cell based on the provided value.
This method handles a variety of data types easibly convertible to strings, and takes the highlight property of the AnewtGridColumn into account when rendering into a HTML <td> table cell. You can use this method to render the final result in custom cell renderers (after doing done your custom formatting based on the row data).
$valueValue to render
XHTML snippet for a table cell
fetch_value_from_data($data) [protected] ¶Fetch default value from the row data, based on the cell renderer id.
This method is used internally to fetch the cell data from the row data object. Both associative arrays and AnewtContainer objects are handled. Which value is retrieved depends on the id of the cell renderer; if you did not instantiate an AnewtGridCellRenderer yourself, this is will be the same as the column id.
Custom AnewtGridCellRenderer subclasses may use this method as a convenience method to get data from the row object prior to further processing or formatting.
$dataRow data
Value extracted from row data, based on the id
AnewtContainer::_to_array()AnewtContainer::_add()AnewtContainer::delete()AnewtContainer::get()AnewtContainer::_isset()AnewtContainer::_seed()AnewtContainer::setdefault()AnewtContainer::getdefault()AnewtContainer::set()AnewtContainer::__isset()AnewtContainer::__set()AnewtContainer::is_set()AnewtContainer::add()AnewtContainer::_getdefault()AnewtContainer::__unset()AnewtContainer::seed()AnewtContainer::to_array()AnewtContainer::_get()AnewtContainer::__get()AnewtContainer::keys()AnewtContainer::clear()AnewtContainer::_keys()AnewtContainer::_set()