QueryAggregate::createSqlAlias

QueryAggregate::createSqlAlias($field, $sql_field) Builds a sql alias as expected in the result. Parameters string $field: The field as passed in by the caller. string $sql_field: The sql field as returned by getSqlField. Return value string The SQL alias expected in the return value. The dots in $sql_field are replaced with underscores and if a default fallback to .value happened, the _value is stripped. File core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php, line 154 Class QueryA

QueryAggregate::conditionAggregateGroupFactory

public QueryAggregate::conditionAggregateGroupFactory($conjunction = 'AND') Creates an object holding a group of conditions. See andConditionAggregateGroup() and orConditionAggregateGroup() for more. Parameters string $conjunction: AND (default): this is the equivalent of andConditionAggregateGroup(). OR: this is the equivalent of andConditionAggregateGroup(). Return value ConditionInterface An object holding a group of conditions. Overrides QueryAggregateInterface::conditionAggregateGrou

QueryAggregate::compileAggregate

protected QueryAggregate::compileAggregate() Builds the aggregation conditions part of the query. Return value \Drupal\Core\Entity\Query\Sql\QueryAggregate Returns the called object. File core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php, line 91 Class QueryAggregate The SQL storage entity query aggregate class. Namespace Drupal\Core\Entity\Query\Sql Code protected function compileAggregate() { $this->conditionAggregate->compile($this->sqlQuery); return $this; }

QueryAggregate::addSortAggregate

protected QueryAggregate::addSortAggregate() Builds the aggregation sort part of the query. Return value \Drupal\Core\Entity\Query\Sql\QueryAggregate Returns the called object. File core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php, line 120 Class QueryAggregate The SQL storage entity query aggregate class. Namespace Drupal\Core\Entity\Query\Sql Code protected function addSortAggregate() { if (!$this->count) { foreach ($this->sortAggregate as $alias => $sort) {

QueryAggregate::addGroupBy

protected QueryAggregate::addGroupBy() Adds the groupby values to the actual query. Return value \Drupal\Core\Entity\Query\Sql\QueryAggregate Returns the called object. File core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php, line 102 Class QueryAggregate The SQL storage entity query aggregate class. Namespace Drupal\Core\Entity\Query\Sql Code protected function addGroupBy() { foreach ($this->groupBy as $group_by) { $field = $group_by['field']; $sql_field = $this-&g

QueryAggregate::addAggregate

protected QueryAggregate::addAggregate() Adds the aggregations to the query. Return value \Drupal\Core\Entity\Query\Sql\QueryAggregate Returns the called object. File core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php, line 75 Class QueryAggregate The SQL storage entity query aggregate class. Namespace Drupal\Core\Entity\Query\Sql Code protected function addAggregate() { if ($this->aggregate) { foreach ($this->aggregate as $aggregate) { $sql_field = $this->g

QueryAggregate::$sqlExpressions

Stores the sql expressions used to build the sql query. An array of expressions. Type: array File core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php, line 18 Class QueryAggregate The SQL storage entity query aggregate class. Namespace Drupal\Core\Entity\Query\Sql Code protected $sqlExpressions = array();

QueryAggregate

The SQL storage entity query aggregate class. Hierarchy class \Drupal\Core\Entity\Query\QueryBase implements QueryInterfaceclass \Drupal\Core\Entity\Query\Sql\Query implements QueryInterfaceclass \Drupal\Core\Entity\Query\Sql\QueryAggregate implements QueryAggregateInterface File core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php, line 10 Namespace Drupal\Core\Entity\Query\Sql Members Name Modifiers Type Description Query::$connection protected property Query::

Query::__wakeup

public Query::__wakeup() Implements the magic __wakeup function to reconnect to the database. File core/lib/Drupal/Core/Database/Query/Query.php, line 91 Class Query Base class for query builders. Namespace Drupal\Core\Database\Query Code public function __wakeup() { $this->connection = Database::getConnection($this->connectionTarget, $this->connectionKey); }

Query::__toString

abstract public Query::__toString() Implements PHP magic __toString method to convert the query to a string. The toString operation is how we compile a query object to a prepared statement. Return value string A prepared statement query string for this object. File core/lib/Drupal/Core/Database/Query/Query.php, line 119 Class Query Base class for query builders. Namespace Drupal\Core\Database\Query Code abstract public function __toString();