Search for fetch

  1. Search 7.x for fetch
  2. Search 8.9.x for fetch
  3. Search 10.3.x for fetch
  4. Search 11.x for fetch
  5. Other projects
Title Object type File name Summary
StatementInterface::fetchAll function core/lib/Drupal/Core/Database/StatementInterface.php Returns an array containing all of the result set rows.
StatementInterface::fetchAllAssoc function core/lib/Drupal/Core/Database/StatementInterface.php Returns the result set as an associative array keyed by the given field.
StatementInterface::fetchAllKeyed function core/lib/Drupal/Core/Database/StatementInterface.php Returns the entire result set as a single associative array.
StatementInterface::fetchAssoc function core/lib/Drupal/Core/Database/StatementInterface.php Fetches the next row and returns it as an associative array.
StatementInterface::fetchCol function core/lib/Drupal/Core/Database/StatementInterface.php Returns an entire single column of a result set as an indexed array.
StatementInterface::fetchField function core/lib/Drupal/Core/Database/StatementInterface.php Returns a single field from the next record of a result set.
StatementInterface::fetchObject function core/lib/Drupal/Core/Database/StatementInterface.php Fetches the next row and returns it as an object.
StatementInterface::setFetchMode function core/lib/Drupal/Core/Database/StatementInterface.php Sets the default fetch mode for this statement.
StatementPrefetch class core/lib/Drupal/Core/Database/StatementPrefetch.php An implementation of StatementInterface that prefetches all data.
StatementPrefetch.php file core/lib/Drupal/Core/Database/StatementPrefetch.php
StatementPrefetch::$columnNames property core/lib/Drupal/Core/Database/StatementPrefetch.php The list of column names in this result set.
StatementPrefetch::$connection property core/lib/Drupal/Core/Database/StatementPrefetch.php The Drupal database connection object.
StatementPrefetch::$currentKey property core/lib/Drupal/Core/Database/StatementPrefetch.php The key of the current row.
StatementPrefetch::$currentRow property core/lib/Drupal/Core/Database/StatementPrefetch.php The current row, retrieved in \PDO::FETCH_ASSOC format.
StatementPrefetch::$data property core/lib/Drupal/Core/Database/StatementPrefetch.php Main data store.
StatementPrefetch::$defaultFetchOptions property core/lib/Drupal/Core/Database/StatementPrefetch.php Holds supplementary default fetch options.
StatementPrefetch::$defaultFetchStyle property core/lib/Drupal/Core/Database/StatementPrefetch.php Holds the default fetch style.
StatementPrefetch::$driverOptions property core/lib/Drupal/Core/Database/StatementPrefetch.php Driver-specific options. Can be used by child classes.
StatementPrefetch::$fetchOptions property core/lib/Drupal/Core/Database/StatementPrefetch.php Holds supplementary current fetch options (which will be used by the next fetch).
StatementPrefetch::$fetchStyle property core/lib/Drupal/Core/Database/StatementPrefetch.php Holds the current fetch style (which will be used by the next fetch).
StatementPrefetch::$pdoConnection property core/lib/Drupal/Core/Database/StatementPrefetch.php Reference to the PDO connection object for this statement.
StatementPrefetch::$queryString property core/lib/Drupal/Core/Database/StatementPrefetch.php The query string.
StatementPrefetch::$resultRowCount property core/lib/Drupal/Core/Database/StatementPrefetch.php The number of rows in this result set.
StatementPrefetch::$rowCount property core/lib/Drupal/Core/Database/StatementPrefetch.php The number of rows matched by the last query.
StatementPrefetch::$rowCountEnabled property core/lib/Drupal/Core/Database/StatementPrefetch.php Is rowCount() execution allowed.
StatementPrefetch::current function core/lib/Drupal/Core/Database/StatementPrefetch.php Return the current row formatted according to the current fetch style.
StatementPrefetch::execute function core/lib/Drupal/Core/Database/StatementPrefetch.php Executes a prepared statement.
StatementPrefetch::fetch function core/lib/Drupal/Core/Database/StatementPrefetch.php Fetches the next row from a result set.
StatementPrefetch::fetchAll function core/lib/Drupal/Core/Database/StatementPrefetch.php Returns an array containing all of the result set rows.
StatementPrefetch::fetchAllAssoc function core/lib/Drupal/Core/Database/StatementPrefetch.php Returns the result set as an associative array keyed by the given field.
StatementPrefetch::fetchAllKeyed function core/lib/Drupal/Core/Database/StatementPrefetch.php Returns the entire result set as a single associative array.
StatementPrefetch::fetchAssoc function core/lib/Drupal/Core/Database/StatementPrefetch.php Fetches the next row and returns it as an associative array.
StatementPrefetch::fetchCol function core/lib/Drupal/Core/Database/StatementPrefetch.php Returns an entire single column of a result set as an indexed array.
StatementPrefetch::fetchColumn function core/lib/Drupal/Core/Database/StatementPrefetch.php
StatementPrefetch::fetchField function core/lib/Drupal/Core/Database/StatementPrefetch.php Returns a single field from the next record of a result set.
StatementPrefetch::fetchObject function core/lib/Drupal/Core/Database/StatementPrefetch.php Fetches the next row and returns it as an object.
StatementPrefetch::getConnectionTarget function core/lib/Drupal/Core/Database/StatementPrefetch.php
StatementPrefetch::getQueryString function core/lib/Drupal/Core/Database/StatementPrefetch.php Gets the query string of this statement.
StatementPrefetch::getStatement function core/lib/Drupal/Core/Database/StatementPrefetch.php Grab a PDOStatement object from a given query and its arguments.
StatementPrefetch::key function core/lib/Drupal/Core/Database/StatementPrefetch.php
StatementPrefetch::next function core/lib/Drupal/Core/Database/StatementPrefetch.php
StatementPrefetch::rewind function core/lib/Drupal/Core/Database/StatementPrefetch.php
StatementPrefetch::rowCount function core/lib/Drupal/Core/Database/StatementPrefetch.php Returns the number of rows matched by the last SQL statement.
StatementPrefetch::setFetchMode function core/lib/Drupal/Core/Database/StatementPrefetch.php Sets the default fetch mode for this statement.
StatementPrefetch::throwPDOException function core/lib/Drupal/Core/Database/StatementPrefetch.php Throw a PDO Exception based on the last PDO error.
StatementPrefetch::valid function core/lib/Drupal/Core/Database/StatementPrefetch.php
StatementPrefetch::__construct function core/lib/Drupal/Core/Database/StatementPrefetch.php Constructs a StatementPrefetch object.
StatementPrefetch::__get function core/lib/Drupal/Core/Database/StatementPrefetch.php Implements the magic __get() method.
StatementPrefetch::__set function core/lib/Drupal/Core/Database/StatementPrefetch.php Implements the magic __set() method.
StatementWrapper::fetch function core/lib/Drupal/Core/Database/StatementWrapper.php Fetches the next row from a result set.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.