Structures_DataGrid::addColumn()
-- Add a column, with optional position
Description
This package is not documented yet.
Parameter
- string
$position
One of: "last", "first", "after" or
"before" (default:
"last")
- string
$relativeTo
The name (label) or field name of the
relative column, if $position is "after"
or "before"
- object
$column
The Structures_DataGrid_Column object
(reference to)
Return value
returns
PEAR_Error on failure, void otherwise
Throws
throws
no exceptions thrown
Examples
Example 59-1. Adding a simple column <?php
$datagrid =& new Structures_DataGrid();
$column = new Structures_DataGrid_Column('Title', 'title', 'title', array('align' => 'center'), 'N/A', null);
$datagrid->addColumn($column);
?> |
|
Note
This function can not be called
statically.