SelectInterface::havingArguments

public SelectInterface::havingArguments() Gets a list of all values to insert into the HAVING clause. Return value array An associative array of placeholders and values. File core/lib/Drupal/Core/Database/Query/SelectInterface.php, line 564 Class SelectInterface Interface definition for a Select Query object. Namespace Drupal\Core\Database\Query Code public function havingArguments();

SelectInterface::having

public SelectInterface::having($snippet, $args = array()) Adds an arbitrary HAVING clause to the query. Parameters $snippet: A portion of a HAVING clause as a prepared statement. It must use named placeholders, not ? placeholders. $args: (optional) An associative array of arguments. Return value $this File core/lib/Drupal/Core/Database/Query/SelectInterface.php, line 577 Class SelectInterface Interface definition for a Select Query object. Namespace Drupal\Core\Database\Query Code pu

SelectInterface::groupBy

public SelectInterface::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. File core/lib/Drupal/Core/Database/Query/SelectInterface.php, line 488 Class SelectInterface Interface definition for a Select Query object. Namespace Drupal\Core\Database\Query Code public function groupBy($field);

SelectInterface::getUnion

public &SelectInterface::getUnion() Returns a reference to the union queries for this query. This include queries for UNION, UNION ALL, and UNION DISTINCT. Because this method returns by reference, alter hooks may edit the tables array directly to make their changes. If just adding union queries, however, the use of the union() method is preferred. Note that this method must be called by reference as well: $fields =& $query->getUnion(); Return value A reference to the union query a

SelectInterface::getTables

public &SelectInterface::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. File core/lib/Drupal/Core/Database/Query/SelectInterface.p

SelectInterface::getOrderBy

public &SelectInterface::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. File core/lib/Drupal/Core/Database/Qu

SelectInterface::getGroupBy

public &SelectInterface::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. File core/lib/Drupal/Core/Database/Quer

SelectInterface::getFields

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

SelectInterface::getExpressions

public &SelectInterface::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. File core/lib/Drupal/Core/Databa

SelectInterface::getArguments

public SelectInterface::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. File core/lib/Drupal/Core/Database/Query/SelectInterface.php, line 163 Class SelectInterface Interface