Located in Program_Root/widgets/data_list/SQLDataListSource.inc (line 15)
DataListSource | --SQLDataListSource
Class | Description |
---|---|
PEARSQLDataListSource | This SQLDataListSource child class interacts with with the specific DB via the php PEAR DB abstraction objects. |
ADODBSQLDataListSource | This SQLDataListSource child class interacts with with the specific DB via the php ADODB DB abstraction objects. |
PGSQLDataListSource | This SQLDataListSource child class interacts with |
this holds all of the options
that make up the sql query
The entire query built by
build_query()
Inherited from DataListSource
DataListSource::$_columns
DataListSource::$_data
DataListSource::$_data_index
DataListSource::$_not_found_message
DataListSource::$_query_params
This function is responsible for building the portion of the where clause for doing an advanced search.
NOTE: the child class MUST override this method
this builds the groupby clause of the query
This function builds the limit clause portion of a DB query.
This is specific to the particular DB implementation.
This builds the db query ORDER BY clause used to sort the data from the DB.
build the entire DB query
- build the limit clause or not/
This method builds the where clause.
This builds the where clause for the query
find the number of rows to be returned from a query from a table and where clause
- the table to count from
- a where clause
Do the query to the DB and pull in all of the records locally.
this returns the current count column
returns the table(s) used in the query
This function returns the values we need to search for in the sql query
This function gets the next data row from the query()
This function does the variable cleaning that is required to use a search value in a sql query
- the origina string from the user
Set which DB options to use for this list.
- $values - the values you want to select from the db table(s)
- $tables - The tables you want to select on.
- $where_clause - portion of the where clause. This expects name=value pairs only.
- $groupby_clause - the groupby portion of the query. same format as where_clause
This function builds the orderby clause for the DB query.
- DB table field to order by
- order assension value.
This function changes the counted column.
By default, we use count(1) But sometime you need count(distinct KEY) for example
Sets the groupby clause for the query
name value pairs
Set the tables from the DB you want to select on.
- $tables
Set the values we want to select from the db.
- $values
Set the user portion of the where clause.
- name value pairs
this builds the search clause
Clean up the string so it can work in a db
Inherited From DataListSource
DataListSource::DataListSource()
DataListSource::add_column()
DataListSource::do_prequery()
DataListSource::do_query()
DataListSource::get_data_index()
DataListSource::get_limit()
DataListSource::get_next_data_row()
DataListSource::get_not_found_message()
DataListSource::get_offset()
DataListSource::get_orderby()
DataListSource::get_reverseorder()
DataListSource::get_searchby()
DataListSource::get_searchby_value()
DataListSource::get_search_type()
DataListSource::get_simplesearch_modifier()
DataListSource::get_total_rows()
DataListSource::query()
DataListSource::row_filter()
DataListSource::set_limit()
DataListSource::set_not_found_message()
DataListSource::set_offset()
DataListSource::set_orderby()
DataListSource::set_reverseorder()
DataListSource::set_searchby()
DataListSource::set_searchby_value()
DataListSource::set_search_type()
DataListSource::set_simplesearch_modifier()
DataListSource::set_total_rows()
DataListSource::sort()
DataListSource::_is_column_sortable()
Documention generated on Thu, 31 Jul 2003 18:32:59 -0700 by phpDocumentor 1.2.0