Select::__construct

public Select::__construct($table, $alias = NULL, Connection $connection, $options = array()) Constructs a Select object. Parameters string $table: The name of the table that is being queried. string $alias: The alias for the table. \Drupal\Core\Database\Connection $connection: Database connection object. array $options: Array of query options. Overrides Query::__construct File core/lib/Drupal/Core/Database/Query/Select.php, line 132 Class Select Query builder for SELECT statements. Nam

Select::valueCallback

public static Select::valueCallback(&$element, $input, FormStateInterface $form_state) Determines how user input is mapped to an element's #value property. Parameters array $element: An associative array containing the properties of the element. mixed $input: The incoming input to populate the form element. If this is FALSE, the element's default value should be returned. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value mixed The value to assig

Select::rightJoin

public Select::rightJoin($table, $alias = NULL, $condition = NULL, $arguments = array()) Right Outer Join against another table in the database. Parameters $table: The table against which to join. May be a string or another SelectQuery object. If a query object is passed, it will be used as a subselect. Unless the table name starts with the database / schema name and a dot it will be prefixed. $alias: The alias for the table. In most cases this should be the first letter of the table, or the f

Select::__clone

public Select::__clone() Implements the magic __clone function. Overrides Query::__clone File core/lib/Drupal/Core/Database/Query/Select.php, line 900 Class Select Query builder for SELECT statements. Namespace Drupal\Core\Database\Query Code public function __clone() { // On cloning, also clone the dependent objects. However, we do not // want to clone the database connection object as that would duplicate the // connection itself. $this->condition = clone($this->condit

Select::union

public Select::union(SelectInterface $query, $type = '') Add another Select query to UNION to this one. Union queries consist of two or more queries whose results are effectively concatenated together. Queries will be UNIONed in the order they are specified, with this object's query coming first. Duplicate columns will be discarded. All forms of UNION are supported, using the second '$type' argument. Note: All queries UNIONed together must have the same field structure, in the same order. It is

Select::range

public Select::range($start = NULL, $length = NULL) Restricts a query to a given range in the result set. If this method is called with no parameters, will remove any range directives that have been set. Parameters $start: The first record from the result set to return. If NULL, removes any range directives that are set. $length: The number of records to return from the result set. Return value \Drupal\Core\Database\Query\SelectInterface The called object. Overrides SelectInterface::range Fil

Select::preExecute

public Select::preExecute(SelectInterface $query = NULL) Generic preparation and validation for a SELECT query. Return value TRUE if the validation was successful, FALSE if not. Overrides SelectInterface::preExecute File core/lib/Drupal/Core/Database/Query/Select.php, line 446 Class Select Query builder for SELECT statements. Namespace Drupal\Core\Database\Query Code public function preExecute(SelectInterface $query = NULL) { // If no query object is passed in, use $this. if (!iss

Select::prepareCountQuery

protected Select::prepareCountQuery() Prepares a count query from the current query object. Return value \Drupal\Core\Database\Query\Select A new query object ready to have COUNT(*) performed on it. File core/lib/Drupal/Core/Database/Query/Select.php, line 718 Class Select Query builder for SELECT statements. Namespace Drupal\Core\Database\Query Code protected function prepareCountQuery() { // Create our new query object that we will mutate into a count query. $count = clone($this

Select::processSelect

public static Select::processSelect(&$element, FormStateInterface $form_state, &$complete_form) Processes a select list form element. This process callback is mandatory for select fields, since all user agents automatically preselect the first available option of single (non-multiple) select lists. Parameters array $element: The form element to process. Properties used: #multiple: (optional) Indicates whether one or more options can be selected. Defaults to FALSE. #default_value: Mus

Select::preRenderSelect

public static Select::preRenderSelect($element) Prepares a select render element. File core/lib/Drupal/Core/Render/Element/Select.php, line 170 Class Select Provides a form element for a drop-down menu or scrolling selection box. Namespace Drupal\Core\Render\Element Code public static function preRenderSelect($element) { Element::setAttributes($element, array('id', 'name', 'size')); static::setAttributes($element, array('form-select')); return $element; }