Select::groupBy

public Select::groupBy($field) Groups the result set by the specified field. Parameters $field: The field on which to group. This should be the field as aliased. Return value \Drupal\Core\Database\Query\SelectInterface The called object. Overrides SelectInterface::groupBy File core/lib/Drupal/Core/Database/Query/Select.php, line 695 Class Select Query builder for SELECT statements. Namespace Drupal\Core\Database\Query Code public function groupBy($field) { $this->group[$field] =

Select::hasAnyTag

public Select::hasAnyTag() Determines if a given query has any specified tag. Parameters $tags: A variable number of arguments, one for each tag to check. Return value TRUE if this query has been marked with at least one of the specified tags, FALSE otherwise. Overrides AlterableInterface::hasAnyTag File core/lib/Drupal/Core/Database/Query/Select.php, line 166 Class Select Query builder for SELECT statements. Namespace Drupal\Core\Database\Query Code public function hasAnyTag() { r

Select::getOrderBy

public &Select::getOrderBy() Returns a reference to the order by array for this query. Because this method returns by reference, alter hooks may edit the order-by array directly to make their changes. If just adding additional ordering fields, however, the use of orderBy() is preferred. Note that this method must be called by reference as well: $fields =& $query->getOrderBy(); Return value A reference to the expression array structure. Overrides SelectInterface::getOrderBy File cor

Select::getTables

public &Select::getTables() Returns a reference to the tables array for this query. Because this method returns by reference, alter hooks may edit the tables array directly to make their changes. If just adding tables, however, the use of the join() methods is preferred. Note that this method must be called by reference as well: $fields =& $query->getTables(); Return value A reference to the tables array structure. Overrides SelectInterface::getTables File core/lib/Drupal/Core/Data

Select::getMetaData

public Select::getMetaData($key) Retrieves a given piece of metadata. Parameters $key: The unique identifier for the piece of metadata to retrieve. Return value The previously attached metadata object, or NULL if one doesn't exist. Overrides AlterableInterface::getMetaData File core/lib/Drupal/Core/Database/Query/Select.php, line 181 Class Select Query builder for SELECT statements. Namespace Drupal\Core\Database\Query Code public function getMetaData($key) { return isset($this->

Select::getInfo

public Select::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/lib/Drupal/Core/Render/Element/Select.php, line 43 Class Select Provides a form element for a drop-down menu or scrolling selection box. Namespace Drupal\Core\Render

Select::getGroupBy

public &Select::getGroupBy() Returns a reference to the group-by array for this query. Because this method returns by reference, alter hooks may edit the group-by array directly to make their changes. If just adding additional grouping fields, however, the use of groupBy() is preferred. Note that this method must be called by reference as well: $fields =& $query->getGroupBy(); Return value A reference to the group-by array structure. Overrides SelectInterface::getGroupBy File core/

Select::forUpdate

public Select::forUpdate($set = TRUE) Add FOR UPDATE to the query. FOR UPDATE prevents the rows retrieved by the SELECT statement from being modified or deleted by other transactions until the current transaction ends. Other transactions that attempt UPDATE, DELETE, or SELECT FOR UPDATE of these rows will be blocked until the current transaction ends. Parameters $set: IF TRUE, FOR UPDATE will be added to the query, if FALSE then it won't. Return value \Drupal\Core\Database\Query\ConditionInte

Select::getExpressions

public &Select::getExpressions() Returns a reference to the expressions array for this query. Because this method returns by reference, alter hooks may edit the expressions array directly to make their changes. If just adding expressions, however, the use of addExpression() is preferred. Note that this method must be called by reference as well: $fields =& $query->getExpressions(); Return value A reference to the expression array structure. Overrides SelectInterface::getExpressions

Select::getArguments

public Select::getArguments(PlaceholderInterface $queryPlaceholder = NULL) Compiles and returns an associative array of the arguments for this prepared statement. Parameters $queryPlaceholder: When collecting the arguments of a subquery, the main placeholder object should be passed as this parameter. Return value An associative array of all placeholder arguments for this query. Overrides SelectInterface::getArguments File core/lib/Drupal/Core/Database/Query/Select.php, line 428 Class Sele