Query builder for SELECT statements.

Hierarchy

Expanded class hierarchy of SelectQuery

Related topics

File

core/includes/database/select.inc, line 866

Members

Contains filters are case sensitive
Name Modifiers Type Descriptionsort ascending
SelectQuery::$distinct protected property Whether or not this query should be DISTINCT
Query::$connectionTarget protected property The target of the connection object.
SelectQuery::$tables protected property The tables against which to JOIN.
SelectQuery::$range protected property The range limiters for this query.
Query::$queryOptions protected property The query options to pass on to the connection object.
Query::$nextPlaceholder protected property The placeholder counter.
Query::$connectionKey protected property The key of the connection object.
SelectQuery::$forUpdate protected property The FOR UPDATE status
SelectQuery::$fields protected property The fields to SELECT.
SelectQuery::$order protected property The fields by which to order this query.
SelectQuery::$group protected property The fields by which to group.
SelectQuery::$expressions protected property The expressions to SELECT as virtual fields.
Query::$connection protected property The connection object on which to run this query.
SelectQuery::$where protected property The conditional object for the WHERE clause.
SelectQuery::$having protected property The conditional object for the HAVING clause.
Query::uniqueIdentifier public function Returns a unique identifier for this object. Overrides QueryPlaceholderInterface::uniqueIdentifier
Query::getComments public function Returns a reference to the comments array for the query.
SelectQuery::$prepared protected property Indicates if preExecute() has already been called.
Query::__wakeup public function Implements the magic __wakeup function to reconnect to the database.
Query::__sleep public function Implements the magic __sleep function to disconnect from the database.
SelectQuery::__clone public function Implements the magic __clone function. Overrides Query::__clone
SelectQuery::union public function Implements SelectQueryInterface::union(). Overrides SelectQueryInterface::union
SelectQuery::rightJoin public function Implements SelectQueryInterface::rightJoin(). Overrides SelectQueryInterface::rightJoin
SelectQuery::range public function Implements SelectQueryInterface::range(). Overrides SelectQueryInterface::range
SelectQuery::preExecute public function Implements SelectQueryInterface::preExecute(). Overrides SelectQueryInterface::preExecute
SelectQuery::orderRandom public function Implements SelectQueryInterface::orderRandom(). Overrides SelectQueryInterface::orderRandom
SelectQuery::orderBy public function Implements SelectQueryInterface::orderBy(). Overrides SelectQueryInterface::orderBy
SelectQuery::leftJoin public function Implements SelectQueryInterface::leftJoin(). Overrides SelectQueryInterface::leftJoin
SelectQuery::join public function Implements SelectQueryInterface::join(). Overrides SelectQueryInterface::join
SelectQuery::isPrepared public function Implements SelectQueryInterface::isPrepared(). Overrides SelectQueryInterface::isPrepared
SelectQuery::innerJoin public function Implements SelectQueryInterface::innerJoin(). Overrides SelectQueryInterface::innerJoin
SelectQuery::groupBy public function Implements SelectQueryInterface::groupBy(). Overrides SelectQueryInterface::groupBy
SelectQuery::getUnion public function Implements SelectQueryInterface::getUnion(). Overrides SelectQueryInterface::getUnion
SelectQuery::getTables public function Implements SelectQueryInterface::getTables(). Overrides SelectQueryInterface::getTables
SelectQuery::getOrderBy public function Implements SelectQueryInterface::getOrderBy(). Overrides SelectQueryInterface::getOrderBy
SelectQuery::getGroupBy public function Implements SelectQueryInterface::getGroupBy(). Overrides SelectQueryInterface::getGroupBy
SelectQuery::getFields public function Implements SelectQueryInterface::getFields(). Overrides SelectQueryInterface::getFields
SelectQuery::getExpressions public function Implements SelectQueryInterface::getExpressions(). Overrides SelectQueryInterface::getExpressions
SelectQuery::getArguments public function Implements SelectQueryInterface::getArguments(). Overrides SelectQueryInterface::getArguments
SelectQuery::fields public function Implements SelectQueryInterface::fields(). Overrides SelectQueryInterface::fields
SelectQuery::execute public function Implements SelectQueryInterface::execute(). Overrides Query::execute
SelectQuery::distinct public function Implements SelectQueryInterface::distinct(). Overrides SelectQueryInterface::distinct
SelectQuery::countQuery public function Implements SelectQueryInterface::countQuery(). Overrides SelectQueryInterface::countQuery
SelectQuery::addJoin public function Implements SelectQueryInterface::addJoin(). Overrides SelectQueryInterface::addJoin
SelectQuery::addField public function Implements SelectQueryInterface::addField(). Overrides SelectQueryInterface::addField
SelectQuery::addExpression public function Implements SelectQueryInterface::addExpression(). Overrides SelectQueryInterface::addExpression
SelectQuery::havingNotExists public function Implements QueryExtendableInterface::havingNotExists().
SelectQuery::havingIsNull public function Implements QueryExtendableInterface::havingIsNull().
SelectQuery::havingIsNotNull public function Implements QueryExtendableInterface::havingIsNotNull().
SelectQuery::havingExists public function Implements QueryExtendableInterface::havingExists().
SelectQuery::forUpdate public function Implements QueryExtendableInterface::forUpdate(). Overrides SelectQueryInterface::forUpdate
SelectQuery::extend public function Implements QueryExtendableInterface::extend(). Overrides QueryExtendableInterface::extend
SelectQuery::where public function Implements QueryConditionInterface::where(). Overrides QueryConditionInterface::where
SelectQuery::notExists public function Implements QueryConditionInterface::notExists(). Overrides QueryConditionInterface::notExists
SelectQuery::isNull public function Implements QueryConditionInterface::isNull(). Overrides QueryConditionInterface::isNull
SelectQuery::isNotNull public function Implements QueryConditionInterface::isNotNull(). Overrides QueryConditionInterface::isNotNull
SelectQuery::havingConditions public function Implements QueryConditionInterface::havingConditions().
SelectQuery::havingCondition public function Implements QueryConditionInterface::havingCondition(). Overrides SelectQueryInterface::havingCondition
SelectQuery::havingCompile public function Implements QueryConditionInterface::havingCompile().
SelectQuery::havingArguments public function Implements QueryConditionInterface::havingArguments().
SelectQuery::having public function Implements QueryConditionInterface::having().
SelectQuery::exists public function Implements QueryConditionInterface::exists(). Overrides QueryConditionInterface::exists
SelectQuery::conditions public function Implements QueryConditionInterface::conditions(). Overrides QueryConditionInterface::conditions
SelectQuery::condition public function Implements QueryConditionInterface::condition(). Overrides QueryConditionInterface::condition
SelectQuery::compiled public function Implements QueryConditionInterface::compiled(). Overrides QueryConditionInterface::compiled
SelectQuery::compile public function Implements QueryConditionInterface::compile(). Overrides QueryConditionInterface::compile
SelectQuery::arguments public function Implements QueryConditionInterface::arguments(). Overrides QueryConditionInterface::arguments
SelectQuery::hasTag public function Implements QueryAlterableInterface::hasTag(). Overrides QueryAlterableInterface::hasTag
SelectQuery::hasAnyTag public function Implements QueryAlterableInterface::hasAnyTag(). Overrides QueryAlterableInterface::hasAnyTag
SelectQuery::hasAllTags public function Implements QueryAlterableInterface::hasAllTags(). Overrides QueryAlterableInterface::hasAllTags
SelectQuery::getMetaData public function Implements QueryAlterableInterface::getMetaData(). Overrides QueryAlterableInterface::getMetaData
SelectQuery::addTag public function Implements QueryAlterableInterface::addTag(). Overrides QueryAlterableInterface::addTag
SelectQuery::addMetaData public function Implements QueryAlterableInterface::addMetaData(). Overrides QueryAlterableInterface::addMetaData
SelectQuery::__toString public function Implements PHP magic __toString method to convert the query to a string. Overrides Query::__toString
Query::nextPlaceholder public function Gets the next placeholder value for this query object. Overrides QueryPlaceholderInterface::nextPlaceholder
SelectQuery::__construct public function Constructs a Query object. Overrides Query::__construct
SelectQuery::$union 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'…
Query::$comments protected property An array of comments that can be prepended to a query.
Query::comment public function Adds a comment to the query.
Query::$uniqueIdentifier protected property A unique identifier for this query object.
SelectQuery::$alterTags protected property A list of tags by which this query may be altered.
SelectQuery::$alterMetaData protected property A list of arbitrary metadata that may be attached to the query.