Implements interfaces:
A SelectQuery class provides the tools to build a SELECT query.
Located in /harmoni/core/DBHandler/SelectQuery.class.php (line 27)
SObject | --QueryAbstract | --SelectQuery
The list of columns we will be selecting.
The list of columns we will be selecting. This is an array of arrays. Each element in the outer array specifies one column. The first element of each inner array is the column name itself. The second element is the alias of that column and is optional. The third and last element is the name of the table where the column resides.
This will store the condition in the WHERE clause. Each element of this array stores 2 things: the condition itself, and the logical operator to use to join with the previous condition.
Specifies whether distinct rows will be returned or not.
Specifies whether distinct rows will be returned or not. If TRUE, only unique rows will be returned by the query.
Will store the columns in the GROUP BY clause.
Will store the columns in the GROUP BY clause.
Will store the condition in the HAVING clause.
Will store the condition in the HAVING clause.
Stores the number of rows to return.
Stores the number of rows to return.
Will store the columns in the ORDER BY clause.
Will store the columns in the OREDER BY clause. This is an array of arrays. Each element in the outer arrays stores one entry in the ORDER BY clause. Each inner array holds two elements. The first one is the name of the column to order by. The second one specifies whether it is a ASCENDING or DESCENDING order.
Stores the number of the row to start from.
Stores the number of the row to start from.
This array stores the tables in the FROM clause of the SELECT query.
This array stores the tables in the FROM clause of the SELECT query along with the join types, join conditions, and table alias.
Inherited from QueryAbstract
QueryAbstract::$_type
The constructor initializes the query object.
The constructor initializes the query object.
Adds a new column to the SELECT query.
Adds a new column to the SELECT query. This method is an alternative to the setColumns() method. It adds one column at a time, and also provides the ability to explicitly specify the alias of the column to select. Note: addColumn() and setColumns() can be used together in any order. However, calling setColumns() after addColumn() resets the list of columns.
Add a column to the ORDER BY clause.
This method adds a column to the ORDER BY clause of the SELECT statement. If the method is never called, no ORDER BY clause will be included. The order of the columns in the clause will coincide with the order, in which they were added with this method.
Adds a table to the FROM clause of the SELECT query.
Adds a table to the FROM clause of the SELECT statement. At any moment, a current set of tables is maintained in the object, so when a new one is added, it is combined with the current set.
Adds a new condition in the WHERE clause.
The query will return only rows that fulfil the condition. If this method is never called, then the WHERE clause will not be included.
Limits the number of rows to the specified number.
Limits the number of rows returned by the SELECT query to the specified number.
Resets the query.
*Deprecated* Sets the columns to select.
Sets the columns to select. Note: addColumn() and setColumns() can be used together in any order. However, calling setColumns() after addColumn() resets the list of columns.
Specifies whether distinct rows will be returned.
Use this method to specify whether the rows returned by the SELECT query have to be distinct (i.e. only unique rows) or not. If the method is never called, then the default value is not distinct.
Sets the GROUP BY and HAVING clause.
This method sets the GROUP BY clause of the SELECT statement. In addition, if $condition is specified, it includes the HAVING clause. If the method is never called, no GROUP BY or HAVING clause will be included.
*Deprecated* Specifies the condition in the WHERE clause.
The query will return only rows that fulfil the condition. If this method is never called, then the WHERE clause will not be included.
Starts the results from the specified row.
Starts the results of the SELECT query from the specified row.
Inherited From QueryAbstract
QueryAbstract::addWhereComparison()
QueryAbstract::addWhereEqual()
QueryAbstract::addWhereGreaterThan()
QueryAbstract::addWhereGreaterThanOrEqual()
QueryAbstract::addWhereIn()
QueryAbstract::addWhereLessThan()
QueryAbstract::addWhereLessThanOrEqual()
QueryAbstract::addWhereNotEqual()
QueryAbstract::addWhereNotIn()
QueryAbstract::addWhereNotNull()
QueryAbstract::addWhereNull()
QueryAbstract::addWhereRawComparison()
QueryAbstract::addWhereRawEqual()
QueryAbstract::addWhereRawGreaterThan()
QueryAbstract::addWhereRawGreaterThanOrEqual()
QueryAbstract::addWhereRawIn()
QueryAbstract::addWhereRawLessThan()
QueryAbstract::addWhereRawLessThanOrEqual()
QueryAbstract::addWhereRawNotEqual()
QueryAbstract::addWhereRawNotIn()
QueryAbstract::asString()
QueryAbstract::cleanColumn()
QueryAbstract::getType()
QueryAbstract::reset()
Inherited From SObject
SObject::asA()
SObject::asString()
SObject::copy()
SObject::copySameFrom()
SObject::copyTwoLevel()
SObject::deepCopy()
SObject::isEqual()
SObject::isEqualTo()
SObject::isNotEqualTo()
SObject::isNotReferenceTo()
SObject::isReferenceTo()
SObject::newFrom()
SObject::postCopy()
SObject::printableString()
SObject::shallowCopy()
SObject::_deepCopyArray()
Documentation generated on Wed, 19 Sep 2007 10:26:22 -0400 by phpDocumentor 1.3.0RC3