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 866
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. |
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 |
Implements SelectQueryInterface::addExpression(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::addField(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::addJoin(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements QueryAlterableInterface::addMetaData(). Overrides QueryAlterableInterface:: |
SelectQuery:: |
public | function |
Implements QueryAlterableInterface::addTag(). Overrides QueryAlterableInterface:: |
SelectQuery:: |
public | function |
Implements QueryConditionInterface::arguments(). Overrides QueryConditionInterface:: |
SelectQuery:: |
public | function |
Implements QueryConditionInterface::compile(). Overrides QueryConditionInterface:: |
SelectQuery:: |
public | function |
Implements QueryConditionInterface::compiled(). Overrides QueryConditionInterface:: |
SelectQuery:: |
public | function |
Implements QueryConditionInterface::condition(). Overrides QueryConditionInterface:: |
SelectQuery:: |
public | function |
Implements QueryConditionInterface::conditions(). Overrides QueryConditionInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::countQuery(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::distinct(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::execute(). Overrides Query:: |
SelectQuery:: |
public | function |
Implements QueryConditionInterface::exists(). Overrides QueryConditionInterface:: |
SelectQuery:: |
public | function |
Implements QueryExtendableInterface::extend(). Overrides QueryExtendableInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::fields(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements QueryExtendableInterface::forUpdate(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::getArguments(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::getExpressions(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::getFields(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::getGroupBy(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements QueryAlterableInterface::getMetaData(). Overrides QueryAlterableInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::getOrderBy(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::getTables(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::getUnion(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::groupBy(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements QueryAlterableInterface::hasAllTags(). Overrides QueryAlterableInterface:: |
SelectQuery:: |
public | function |
Implements QueryAlterableInterface::hasAnyTag(). Overrides QueryAlterableInterface:: |
SelectQuery:: |
public | function |
Implements QueryAlterableInterface::hasTag(). Overrides QueryAlterableInterface:: |
SelectQuery:: |
public | function | Implements QueryConditionInterface::having(). |
SelectQuery:: |
public | function | Implements QueryConditionInterface::havingArguments(). |
SelectQuery:: |
public | function | Implements QueryConditionInterface::havingCompile(). |
SelectQuery:: |
public | function |
Implements QueryConditionInterface::havingCondition(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function | Implements QueryConditionInterface::havingConditions(). |
SelectQuery:: |
public | function | Implements QueryExtendableInterface::havingExists(). |
SelectQuery:: |
public | function | Implements QueryExtendableInterface::havingIsNotNull(). |
SelectQuery:: |
public | function | Implements QueryExtendableInterface::havingIsNull(). |
SelectQuery:: |
public | function | Implements QueryExtendableInterface::havingNotExists(). |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::innerJoin(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements QueryConditionInterface::isNotNull(). Overrides QueryConditionInterface:: |
SelectQuery:: |
public | function |
Implements QueryConditionInterface::isNull(). Overrides QueryConditionInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::isPrepared(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::join(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::leftJoin(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements QueryConditionInterface::notExists(). Overrides QueryConditionInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::orderBy(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::orderRandom(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::preExecute(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::range(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::rightJoin(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements SelectQueryInterface::union(). Overrides SelectQueryInterface:: |
SelectQuery:: |
public | function |
Implements QueryConditionInterface::where(). 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:: |