This is an example that shows how to use a PEAR db object as the source for the data to show.
Located in Program_Root/examples/widget6.php (line 52)
DefaultGUIDataList | --pearmysqllist
Class | Description |
---|---|
adodbmysqllist | This is a subclass of the pear mysql list object. |
This is the basic function for letting us do a mapping between the column name in the header, to the value found in the DataListSource.
NOTE: this function is can be overridden so that you can return whatever you want for any given column.
- $row_data - the entire data for the row
- $col_name - the name of the column header for this row to render.
This function is called automatically by the DataList constructor. It must be extended by the child class to actually set the DataListSource object.
This method is used to setup the options for the DataList object's display.
Which columns to show, their respective source column name, width, etc. etc.
The constructor automatically calls this function.
Documention generated on Thu, 31 Jul 2003 18:33:53 -0700 by phpDocumentor 1.2.0