Structures_DataGrid_Column::setField (Previous) (Next) Structures_DataGrid_Column::setLabel

View this page in Last updated: Sun, 28 Sep 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

Structures_DataGrid_Column::setFormatter()

Structures_DataGrid_Column::setFormatter()  -- Set Formatter Callback

Description

Define a formatting callback function with optional arguments for this column.

The callback function receives the following array as its first argument:


<?php
array(
   'record' => associative array of all fields values for this record,
   'fieldName' => the field name of this column,
   'columnName' => the label (headerof this column,
   'orderBy' => the field name to sort this column by,
   'attribs' => this column's attributes,
   'currRow' => zero-based row index,
   'currCol => zero-based column index,
 );
?>

If you pass the optional $arguments parameter to setFormatter(), the callback function will receive it as its second argument.

Paramètres

mixed $formatter

Callback PHP pseudo-type (Array or String)

array $arguments

Associative array of parameters passed to as second argument to the callback function

Valeur retournée

returns PEAR_Error on failure

Valeurs renvoyées

throws no exceptions thrown

Note

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

Structures_DataGrid_Column::setField (Previous) (Next) Structures_DataGrid_Column::setLabel

Download Documentation Last updated: Sun, 28 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.