Structures_DataGrid::setRenderer()

Structures_DataGrid::setRenderer()  -- Set Renderer

Synopsis

require_once 'Structures/DataGrid.php';

mixed& Structures_DataGrid::setRenderer (string $type, array [$options = array()])

Beschreibung

Defines which renderer to be used by the DataGrid based on given $type and $options. To attach an existing renderer instance, use attachRenderer() instead.

Parameter

string $type

The defined renderer string

array $options

Rendering options

Rückgabewert

returns Renderer instance or PEAR_Error

Fehler-Meldungen

throws no exceptions thrown

Siehe auch

see Structures_DataGrid::attachRenderer

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.