DbTablePager Class Reference

Inheritance diagram for DbTablePager:

Inheritance graph
[legend]
Collaboration diagram for DbTablePager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DbTablePager ($db, $query, $attributes=NULL, $extraVars=NULL)
 addRows ()
 toHtml ()

Public Attributes

 $query = ""
 $db = NULL
 $links = NULL
 $pager = NULL
 $limit = 10
 $from = 0

Detailed Description

A table that reads from a database connection. If there are more than 10 results, multiple result pages will be displayed with pager links.


Constructor & Destructor Documentation

DbTablePager::DbTablePager db,
query,
attributes = NULL,
extraVars = NULL
 

Create a DbTable object.

Parameters:
$db DB database connection object.
$query string to build the table.
$attributes array attributes for the HTML_Table object.
$extraVars array additional field values to be passed to the Pager constructor.
Returns:
A DbTable object.


Member Function Documentation

DbTablePager::addRows  ) 
 

Execute the query and add the results as rows.

Returns:
Nothing.

Reimplemented from DbTable.

DbTablePager::toHtml  ) 
 

Output the table as HTML including pager links.

Returns:
A string containing the HTML output.

Reimplemented from DbTable.


Member Data Documentation

DbTablePager::$db = NULL
 

The database connection.

Reimplemented from DbTable.

DbTablePager::$from = 0
 

DbTablePager::$limit = 10
 

DbTablePager::$links = NULL
 

DbTablePager::$pager = NULL
 

DbTablePager::$query = ""
 

The query to build the table.

Reimplemented from DbTable.


The documentation for this class was generated from the following file:
Generated on Sat Jul 1 21:19:38 2006 for DCMMS by  doxygen 1.4.6-NO