class Select in Drupal 8
Same name in this branch
- 8 core/lib/Drupal/Core/Render/Element/Select.php \Drupal\Core\Render\Element\Select
- 8 core/lib/Drupal/Core/Database/Query/Select.php \Drupal\Core\Database\Query\Select
- 8 core/lib/Drupal/Core/Database/Driver/sqlite/Select.php \Drupal\Core\Database\Driver\sqlite\Select
- 8 core/lib/Drupal/Core/Database/Driver/pgsql/Select.php \Drupal\Core\Database\Driver\pgsql\Select
- 8 core/lib/Drupal/Core/Database/Driver/mysql/Select.php \Drupal\Core\Database\Driver\mysql\Select
- 8 core/tests/Drupal/Tests/Core/Database/Stub/Select.php \Drupal\Tests\Core\Database\Stub\Select
- 8 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysql/Select.php \Drupal\driver_test\Driver\Database\DrivertestMysql\Select
- 8 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestPgsql/Select.php \Drupal\driver_test\Driver\Database\DrivertestPgsql\Select
MySQL implementation of \Drupal\Core\Database\Query\Select.
Hierarchy
- class \Drupal\Core\Database\Query\Query implements PlaceholderInterface
- class \Drupal\Core\Database\Query\Select implements SelectInterface uses QueryConditionTrait
- class \Drupal\Core\Database\Driver\mysql\Select
- class \Drupal\Core\Database\Query\Select implements SelectInterface uses QueryConditionTrait
Expanded class hierarchy of Select
2 files declare their use of Select
- Select.php in core/
tests/ Drupal/ Tests/ Core/ Database/ Stub/ Select.php - Select.php in core/
modules/ system/ tests/ modules/ driver_test/ src/ Driver/ Database/ DrivertestMysql/ Select.php
7 string references to 'Select'
- Connection::select in core/
lib/ Drupal/ Core/ Database/ Connection.php - Prepares and returns a SELECT query object.
- Connection::__construct in core/
modules/ system/ tests/ modules/ driver_test/ src/ Driver/ Database/ DrivertestMysqlDeprecatedVersion/ Connection.php - Constructs a Connection object.
- ConnectionTest::providerGetDriverClass in core/
tests/ Drupal/ Tests/ Core/ Database/ ConnectionTest.php - Dataprovider for testGetDriverClass().
- ContentModerationConfigureForm::buildConfigurationForm in core/
modules/ content_moderation/ src/ Form/ ContentModerationConfigureForm.php - Form constructor.
- FilterPluginBase::buildExposedFiltersGroupForm in core/
modules/ views/ src/ Plugin/ views/ filter/ FilterPluginBase.php - Build the form to let users create the group of exposed filters. This form is displayed when users click on button 'Build group'
File
- core/
lib/ Drupal/ Core/ Database/ Driver/ mysql/ Select.php, line 10
Namespace
Drupal\Core\Database\Driver\mysqlView source
class Select extends QuerySelect {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Query:: |
protected | property | An array of comments that can be prepended to a query. | |
Query:: |
protected | property | The connection object on which to run this query. | |
Query:: |
protected | property | The key of the connection object. | |
Query:: |
protected | property | The target of the connection object. | |
Query:: |
protected | property | The placeholder counter. | |
Query:: |
protected | property | The query options to pass on to the connection object. | |
Query:: |
protected | property | A unique identifier for this query object. | |
Query:: |
public | function | Adds a comment to the query. | |
Query:: |
public | function | Returns a reference to the comments array for the query. | |
Query:: |
public | function |
Gets the next placeholder value for this query object. Overrides PlaceholderInterface:: |
|
Query:: |
public | function |
Returns a unique identifier for this object. Overrides PlaceholderInterface:: |
|
Query:: |
public | function | Implements the magic __sleep function to disconnect from the database. | |
Query:: |
public | function | Implements the magic __wakeup function to reconnect to the database. | |
QueryConditionTrait:: |
protected | property | The condition object for this query. | |
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function | ||
QueryConditionTrait:: |
public | function | ||
Select:: |
protected | property | Whether or not this query should be DISTINCT | |
Select:: |
protected | property | The expressions to SELECT as virtual fields. | |
Select:: |
protected | property | The fields to SELECT. | |
Select:: |
protected | property | The FOR UPDATE status | 1 |
Select:: |
protected | property | The fields by which to group. | |
Select:: |
protected | property | The conditional object for the HAVING clause. | |
Select:: |
protected | property | The fields by which to order this query. | |
Select:: |
protected | property | Indicates if preExecute() has already been called. | |
Select:: |
protected | property | The range limiters for this query. | |
Select:: |
protected | property | The tables against which to JOIN. | |
Select:: |
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'… | |
Select:: |
public | function |
Adds an expression to the list of "fields" to be SELECTed. Overrides SelectInterface:: |
1 |
Select:: |
public | function |
Adds a field to the list to be SELECTed. Overrides SelectInterface:: |
|
Select:: |
public | function |
Join against another table in the database. Overrides SelectInterface:: |
|
Select:: |
public | function |
Adds additional metadata to the query. Overrides AlterableInterface:: |
|
Select:: |
public | function |
Adds a tag to a query. Overrides AlterableInterface:: |
|
Select:: |
public | function |
Gets a complete list of all values to insert into the prepared statement. Overrides QueryConditionTrait:: |
|
Select:: |
public | function |
Compiles the saved conditions for later retrieval. Overrides QueryConditionTrait:: |
|
Select:: |
public | function |
Check whether a condition has been previously compiled. Overrides QueryConditionTrait:: |
|
Select:: |
public | function |
Get the equivalent COUNT query of this query as a new query object. Overrides SelectInterface:: |
|
Select:: |
public | function |
Sets this query to be DISTINCT. Overrides SelectInterface:: |
|
Select:: |
public | function |
Escapes a field name string. Overrides SelectInterface:: |
|
Select:: |
public | function |
Escapes characters that work as wildcard characters in a LIKE pattern. Overrides SelectInterface:: |
|
Select:: |
public | function |
Runs the query against the database. Overrides Query:: |
1 |
Select:: |
public | function |
Enhance this object by wrapping it in an extender object. Overrides ExtendableInterface:: |
|
Select:: |
public | function |
Add multiple fields from the same table to be SELECTed. Overrides SelectInterface:: |
|
Select:: |
public | function |
Add FOR UPDATE to the query. Overrides SelectInterface:: |
1 |
Select:: |
public | function |
Compiles and returns an associative array of the arguments for this prepared statement. Overrides SelectInterface:: |
|
Select:: |
public | function |
Returns a reference to the expressions array for this query. Overrides SelectInterface:: |
|
Select:: |
public | function |
Returns a reference to the fields array for this query. Overrides SelectInterface:: |
|
Select:: |
public | function |
Returns a reference to the group-by array for this query. Overrides SelectInterface:: |
|
Select:: |
public | function |
Retrieves a given piece of metadata. Overrides AlterableInterface:: |
|
Select:: |
public | function |
Returns a reference to the order by array for this query. Overrides SelectInterface:: |
|
Select:: |
public | function |
Returns a reference to the tables array for this query. Overrides SelectInterface:: |
|
Select:: |
public | function |
Returns a reference to the union queries for this query. This include
queries for UNION, UNION ALL, and UNION DISTINCT. Overrides SelectInterface:: |
|
Select:: |
public | function |
Groups the result set by the specified field. Overrides SelectInterface:: |
|
Select:: |
public | function |
Determines if a given query has all specified tags. Overrides AlterableInterface:: |
|
Select:: |
public | function |
Determines if a given query has any specified tag. Overrides AlterableInterface:: |
|
Select:: |
public | function |
Determines if a given query has a given tag. Overrides AlterableInterface:: |
|
Select:: |
public | function |
Adds an arbitrary HAVING clause to the query. Overrides SelectInterface:: |
|
Select:: |
public | function |
Gets a list of all values to insert into the HAVING clause. Overrides SelectInterface:: |
|
Select:: |
public | function |
Compiles the HAVING clause for later retrieval. Overrides SelectInterface:: |
|
Select:: |
public | function |
Helper function to build most common HAVING conditional clauses. Overrides SelectInterface:: |
|
Select:: |
public | function |
Gets a list of all conditions in the HAVING clause. Overrides SelectInterface:: |
|
Select:: |
public | function |
Sets a HAVING condition that the specified subquery returns values. Overrides SelectInterface:: |
|
Select:: |
public | function |
Sets a condition in the HAVING clause that the specified field be NOT NULL. Overrides SelectInterface:: |
|
Select:: |
public | function |
Sets a condition in the HAVING clause that the specified field be NULL. Overrides SelectInterface:: |
|
Select:: |
public | function |
Sets a HAVING condition that the specified subquery returns no values. Overrides SelectInterface:: |
|
Select:: |
public | function |
Inner Join against another table in the database. Overrides SelectInterface:: |
|
Select:: |
public | function |
Indicates if preExecute() has already been called on that object. Overrides SelectInterface:: |
|
Select:: |
public | function |
Default Join against another table in the database. Overrides SelectInterface:: |
|
Select:: |
public | function |
Left Outer Join against another table in the database. Overrides SelectInterface:: |
|
Select:: |
public | function |
Orders the result set by a given field. Overrides SelectInterface:: |
1 |
Select:: |
public | function |
Orders the result set by a random value. Overrides SelectInterface:: |
1 |
Select:: |
public | function |
Generic preparation and validation for a SELECT query. Overrides SelectInterface:: |
|
Select:: |
protected | function | Prepares a count query from the current query object. | |
Select:: |
public | function |
Restricts a query to a given range in the result set. Overrides SelectInterface:: |
|
Select:: |
public | function |
Right Outer Join against another table in the database. Overrides SelectInterface:: |
|
Select:: |
public | function |
Add another Select query to UNION to this one. Overrides SelectInterface:: |
|
Select:: |
public | function |
Implements the magic __clone function. Overrides Query:: |
|
Select:: |
public | function |
Constructs a Select object. Overrides Query:: |
|
Select:: |
public | function |
Implements PHP magic __toString method to convert the query to a string. Overrides Query:: |