function StatementInterface::fetchAll
Same name in other branches
- 9 core/lib/Drupal/Core/Database/StatementInterface.php \Drupal\Core\Database\StatementInterface::fetchAll()
- 8.9.x core/lib/Drupal/Core/Database/StatementInterface.php \Drupal\Core\Database\StatementInterface::fetchAll()
- 11.x core/lib/Drupal/Core/Database/StatementInterface.php \Drupal\Core\Database\StatementInterface::fetchAll()
Returns an array containing all of the result set rows.
Parameters
$mode: One of the \PDO::FETCH_* constants.
$column_index: If $mode is \PDO::FETCH_COLUMN, the index of the column to fetch.
$constructor_arguments: If $mode is \PDO::FETCH_CLASS, the arguments to pass to the constructor.
Return value
array An array of results.
4 methods override StatementInterface::fetchAll()
- StatementPrefetch::fetchAll in core/
lib/ Drupal/ Core/ Database/ StatementPrefetch.php - Returns an array containing all of the result set rows.
- StatementPrefetchIterator::fetchAll in core/
lib/ Drupal/ Core/ Database/ StatementPrefetchIterator.php - Returns an array containing all of the result set rows.
- StatementWrapper::fetchAll in core/
lib/ Drupal/ Core/ Database/ StatementWrapper.php - Returns an array containing all of the result set rows.
- StatementWrapperIterator::fetchAll in core/
lib/ Drupal/ Core/ Database/ StatementWrapperIterator.php - Returns an array containing all of the result set rows.
File
-
core/
lib/ Drupal/ Core/ Database/ StatementInterface.php, line 161
Class
- StatementInterface
- Represents a prepared statement.
Namespace
Drupal\Core\DatabaseCode
public function fetchAll($mode = NULL, $column_index = NULL, $constructor_arguments = NULL);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.