Structures_DataGrid

Structures_DataGrid

Table of Contents
Introduction -- What can I do with Structures_DataGrid?
Constants -- Predefined Constants
Data Sources -- What is a Data Source Driver?
Rendering the output -- What formats can I render the output?
Column Formatter -- What can I do with the column formatter?
Example - Quick -- Quickly bind a database record set
Example - Complex -- How to build a datagrid using many of the features
Example - Extending the DataGrid --  This example shows you how to extend the DataGrid class to customize it for your application's needs.
Structures_DataGrid -- Core class
Structures_DataGrid::Structures_DataGrid() -- Constructor
Structures_DataGrid::addColumn() --  Adds a Structures_DataGrid_Column object to the DataGrid's column collection
Structures_DataGrid::addRecord() --  Adds a Structures_DataGrid_Record object to the DataGrid's record collection
Structures_DataGrid::bind() -- Binds a data type that is supported by a DataSource Driver to the DataGrid
Structures_DataGrid::bindDataSource() -- Binds a Structures_DataGrid_DataSource object to the DataGrid.
Structures_DataGrid::render() -- Prints the output generated by the datagrid
Structures_DataGrid::sortRecordSet() -- Sorts the record set based on a column
Structures_DataGrid_Column -- DataGrid Column
Structures_DataGrid_Column::Structures_DataGrid_Column() -- Constructor
Structures_DataGrid_Renderer_HTMLTable -- HTML Table Renderer
Structures_DataGrid_Renderer_HTMLTable::getTable() -- Retrieves the rendered HTML_Table object.
Structures_DataGrid_Renderer_HTMLTable::toHTML() -- Retrieves the rendered html string.
Structures_DataGrid_Renderer_HTMLTable::useHeader() -- Determines whether a table header should be created.
Structures_DataGrid_DataSource -- The Data Source Class
Structures_DataGrid_DataSource::create() -- Creates a Structures_DataGrid_DataSource object

Structures_DataGrid is a class for building, manipulating and rendering a tabular structure of data. It has the ability to allow you to render a datagrid in HTML format as well as many other formats such as an XML Document, an Excel Spreadsheet, an XUL Document and more.

It also offers paging and sorting functionallity to limit the data that is presented. This concept is based on the .NET Framework DataGrid control and works very well with database and XML result sets.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.