Query builder for SELECT statements.
Hierarchy
- class Query implements QueryPlaceholderInterface
- class SelectQuery implements SelectQueryInterface
Expanded class hierarchy of SelectQuery
Related topics
File
- core/
includes/ database/ select.inc, line 1050 - Contains classes and interfaces for Select queries.
Members
Name | Modifiers | Type | Description |
---|---|---|---|
Query:: |
protected | property | An array of comments that can be prepended to a query. |
Query:: |
protected | property | The connection object on which to run this query. |
Query:: |
protected | property | The key of the connection object. |
Query:: |
protected | property | The target of the connection object. |
Query:: |
protected | property | The placeholder counter. |
Query:: |
protected | property | The query options to pass on to the connection object. |
Query:: |
protected | property | A unique identifier for this query object, as generated by uniqid(). |
Query:: |
public | function | Adds a comment to the query. |
Query:: |
public | function | Returns a reference to the comments array for the query. |
Query:: |
public | function |
Gets the next placeholder value for this query object. Overrides QueryPlaceholderInterface:: |
Query:: |
public | function |
Returns a unique identifier for this object. Overrides QueryPlaceholderInterface:: |
Query:: |
public | function | Implements the magic __sleep function to disconnect from the database. |
Query:: |
public | function | Implements the magic __wakeup function to reconnect to the database. |
SelectQuery:: |
protected | property | A list of arbitrary metadata that may be attached to the query. |
SelectQuery:: |
protected | property | A list of tags by which this query may be altered. |
SelectQuery:: |
protected | property | Whether or not this query should be DISTINCT |
SelectQuery:: |
protected | property | The expressions to SELECT as virtual fields. |
SelectQuery:: |
protected | property | The fields to SELECT. |
SelectQuery:: |
protected | property | The FOR UPDATE status |
SelectQuery:: |
protected | property | The fields by which to group. |
SelectQuery:: |
protected | property | The conditional object for the HAVING clause. |
SelectQuery:: |
protected | property | The fields by which to order this query. |
SelectQuery:: |
protected | property | Indicates if preExecute() has already been called. |
SelectQuery:: |
protected | property | The range limiters for this query. |
SelectQuery:: |
protected | property | The tables against which to JOIN. |
SelectQuery:: |
protected | property | An array whose elements specify a query to UNION, and the UNION type. The 'type' key may be '', 'ALL', or 'DISTINCT' to represent a 'UNION', 'UNION ALL', or 'UNION DISTINCT'… |
SelectQuery:: |
protected | property | The conditional object for the WHERE clause. |
SelectQuery:: |
public | function |
Adds an expression to the list of "fields" to be selected. Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Adds a field to the list to be SELECTed. Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Join against another table in the database. Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Overrides QueryAlterableInterface:: |
SelectQuery:: |
public | function |
Overrides QueryAlterableInterface:: |
SelectQuery:: |
public | function |
Gets a complete list of all values to insert into the prepared statement. Overrides QueryConditionInterface:: |
SelectQuery:: |
public | function |
Compiles the saved conditions for later retrieval. Overrides QueryConditionInterface:: |
SelectQuery:: |
public | function |
Check whether a condition has been previously compiled. Overrides QueryConditionInterface:: |
SelectQuery:: |
public | function |
Overrides QueryConditionInterface:: |
SelectQuery:: |
public | function |
Gets a complete list of all conditions in this conditional clause. Overrides QueryConditionInterface:: |
SelectQuery:: |
public | function |
Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Sets this query to be DISTINCT. Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Runs the query against the database. Overrides Query:: |
SelectQuery:: |
public | function |
Overrides QueryConditionInterface:: |
SelectQuery:: |
public | function |
Overrides QueryExtendableInterface:: |
SelectQuery:: |
public | function |
Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Compiles and returns an array of the arguments for this prepared statement. Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Returns a reference to the expressions array for this query. Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Returns a reference to the fields array for this query. Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Returns a reference to the group-by array for this query. Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Overrides QueryAlterableInterface:: |
SelectQuery:: |
public | function |
Returns a reference to the order by array for this query. Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Returns a reference to the tables array for this query. Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Returns a reference to the union queries for this query. This include
queries for UNION, UNION ALL, and UNION DISTINCT. Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Determines if a given query has all specified tags. Overrides QueryAlterableInterface:: |
SelectQuery:: |
public | function |
Determines if a given query has any specified tag. Overrides QueryAlterableInterface:: |
SelectQuery:: |
public | function |
Determines if a given query has a given tag. Overrides QueryAlterableInterface:: |
SelectQuery:: |
public | function | Implements QueryConditionInterface::having(). |
SelectQuery:: |
public | function | Returns all the arguments used within a HAVING clause. |
SelectQuery:: |
public | function | |
SelectQuery:: |
public | function |
Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function | Returns all the conditions used within a HAVING clause. |
SelectQuery:: |
public | function | |
SelectQuery:: |
public | function | |
SelectQuery:: |
public | function | |
SelectQuery:: |
public | function | |
SelectQuery:: |
public | function |
Inner Join against another table in the database. Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Overrides QueryConditionInterface:: |
SelectQuery:: |
public | function |
Overrides QueryConditionInterface:: |
SelectQuery:: |
public | function |
Indicates if preExecute() has already been called on that object. Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Default Join against another table in the database. Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Left Outer Join against another table in the database. Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Overrides QueryConditionInterface:: |
SelectQuery:: |
public | function |
Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Generic preparation and validation for a SELECT query. Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Right Outer Join against another table in the database. Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Overrides QueryConditionInterface:: |
SelectQuery:: |
public | function |
Implements the magic __clone function. Overrides Query:: |
SelectQuery:: |
public | function |
Constructs a Query object. Overrides Query:: |
SelectQuery:: |
public | function |
Implements PHP magic __toString method to convert the query to a string. Overrides Query:: |