DbTable Class Reference

Inheritance diagram for DbTable:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 DbTable ($db, $query, $attributes=NULL)
 addRows ()
 toHtml ()
 gettextColumn ($intColumn)

Public Attributes

 $query = ''
 $db = NULL

Detailed Description

A table that reads data from a database connection.


Constructor & Destructor Documentation

DbTable::DbTable db,
query,
attributes = 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.
Returns:
A DbTable object.


Member Function Documentation

DbTable::addRows  ) 
 

Execute the query and add the results as rows.

Returns:
Nothing.

Reimplemented in DbTablePager.

DbTable::gettextColumn intColumn  ) 
 

Run gettext over the contents of a column. The first row is left out.

Parameters:
integer intColumn The column index.
Returns:
Nothing.

DbTable::toHtml  ) 
 

Output the table as HTML.

Returns:
A string containing the HTML output.

Reimplemented in DbTablePager.


Member Data Documentation

DbTable::$db = NULL
 

The database connection.

Reimplemented in DbTablePager.

DbTable::$query = ''
 

The query to build the table.

Reimplemented in DbTablePager.


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