PEAR Manual
Prev |  | Next

# Structures_DataGrid::Structures_DataGrid()

Structures_DataGrid::Structures_DataGrid() -- Constructor

## Synopsis

    require_once 'Structures/DataGrid.php';

``void Structures_DataGrid` ([integer $limit = `NULL` [, integer $page = 0 [, string $renderer = DATAGRID_RENDER_TABLE]]])`

## Description

The constructor accepts 3 parameters all of which are optional and helps to determine which type of grid you would like to use.

## Parameter

- `integer $limit` - An integer that determines how many records to show per page.

- `integer $page` - An integer that determines which page to display.

- `string $renderer` - A string that determines which renderer to use. Must be one of the defined constants.

## Note

This object must be constructed as a reference in PHP4

## Example

Example 55-1. Instantiating a new DataGrid Object in PHP4
    $dg =& new Structures_DataGrid();

Prev | Home | Next
Structures_DataGrid | Up | Structures_DataGrid::addColumn()