Structures_DataGrid::setRenderer()

Structures_DataGrid::setRenderer()  -- Set Renderer

Synopsis

require_once 'Structures/DataGrid.php';

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

Description

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

Paramètres

chaîne de caractères $type

The defined renderer string

array $options

Rendering options

Valeur retournée

returns Renderer instance or PEAR_Error

Valeurs renvoyées

throws no exceptions thrown

Voir aussi

see Structures_DataGrid::attachRenderer

Note

Cette fonction ne peut pas être appelée de façon statique.