require_once 'Structures/DataGrid.php';
mixed Structures_DataGrid::addColumn (&$column [, string $position = 'last' [, string $relativeTo = NULL, object $column]])
mixed Structures_DataGrid::addColumn
This package is not documented yet.
One of: "last", "first", "after" or "before" (default: "last")
The name (label) or field name of the relative column, if $position is "after" or "before"
The Structures_DataGrid_Column object (reference to)
returns PEAR_Error on failure, void otherwise
throws no exceptions thrown
Example 55-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); ?>
This function can not be called statically.