Class pearmysqllist

Description

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
Direct descendents
Class Description
adodbmysqllist This is a subclass of the pear mysql list object.
Variable Summary
Method Summary
mixed build_column_item (array $row_data, string $col_name)
void get_data_source ()
void user_setup ()
Variables
mixed $_default_rows_per_page = 20 (line 54)
Methods
build_column_item (line 130)

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.

  • return:

    - either a HTMLTag object, or raw text.

mixed build_column_item (array $row_data, string $col_name)
  • array $row_data:

    - $row_data - the entire data for the row

  • string $col_name:

    - $col_name - the name of the column header for this row to render.

get_data_source (line 64)

This function is called automatically by the DataList constructor. It must be extended by the child class to actually set the DataListSource object.

void get_data_source ()

Redefined in descendants as:
  • adodbmysqllist::get_data_source() : This function is called automatically by the DataList constructor. It must be extended by the child class to actually set the DataListSource object.
user_setup (line 97)

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.

void user_setup ()

Documention generated on Thu, 31 Jul 2003 18:33:53 -0700 by phpDocumentor 1.2.0