StatementPrefetch::valid

public StatementPrefetch::valid() File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 349 Class StatementPrefetch An implementation of StatementInterface that prefetches all data. Namespace Drupal\Core\Database Code public function valid() { return isset($this->currentRow); }

StatementPrefetch::throwPDOException

protected StatementPrefetch::throwPDOException() Throw a PDO Exception based on the last PDO error. File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 201 Class StatementPrefetch An implementation of StatementInterface that prefetches all data. Namespace Drupal\Core\Database Code protected function throwPDOException() { $error_info = $this->dbh->errorInfo(); // We rebuild a message formatted in the same way as PDO. $exception = new \PDOException("SQLSTATE[" . $e

StatementPrefetch::setFetchMode

public StatementPrefetch::setFetchMode($mode, $a1 = NULL, $a2 = array()) Sets the default fetch mode for this statement. See http://php.net/manual/pdo.constants.php for the definition of the constants used. Parameters $mode: One of the PDO::FETCH_* constants. $a1: An option depending of the fetch mode specified by $mode: for PDO::FETCH_COLUMN, the index of the column to fetch for PDO::FETCH_CLASS, the name of the class to create for PDO::FETCH_INTO, the object to add the data to $a2: If $mod

StatementPrefetch::rowCount

public StatementPrefetch::rowCount() Returns the number of rows affected by the last SQL statement. Return value The number of rows affected by the last DELETE, INSERT, or UPDATE statement executed or throws \Drupal\Core\Database\RowCountException if the last executed statement was SELECT. Throws \Drupal\Core\Database\RowCountException Overrides StatementInterface::rowCount File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 356 Class StatementPrefetch An implementation of Sta

StatementPrefetch::rewind

public StatementPrefetch::rewind() File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 328 Class StatementPrefetch An implementation of StatementInterface that prefetches all data. Namespace Drupal\Core\Database Code public function rewind() { // Nothing to do: our DatabaseStatement can't be rewound. }

StatementPrefetch::next

public StatementPrefetch::next() File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 335 Class StatementPrefetch An implementation of StatementInterface that prefetches all data. Namespace Drupal\Core\Database Code public function next() { if (!empty($this->data)) { $this->currentRow = reset($this->data); $this->currentKey = key($this->data); unset($this->data[$this->currentKey]); } else { $this->currentRow = NULL; } }

StatementPrefetch::key

public StatementPrefetch::key() File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 321 Class StatementPrefetch An implementation of StatementInterface that prefetches all data. Namespace Drupal\Core\Database Code public function key() { return $this->currentKey; }

StatementPrefetch::getStatement

protected StatementPrefetch::getStatement($query, &$args = array()) Grab a PDOStatement object from a given query and its arguments. Some drivers (including SQLite) will need to perform some preparation themselves to get the statement right. Parameters $query: The query. array $args: An array of arguments. Return value \PDOStatement A PDOStatement object. File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 222 Class StatementPrefetch An implementation of StatementInterface

StatementPrefetch::getQueryString

public StatementPrefetch::getQueryString() Gets the query string of this statement. Return value The query string, in its form with placeholders. Overrides StatementInterface::getQueryString File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 229 Class StatementPrefetch An implementation of StatementInterface that prefetches all data. Namespace Drupal\Core\Database Code public function getQueryString() { return $this->queryString; }

StatementPrefetch::fetchObject

public StatementPrefetch::fetchObject($class_name = NULL, $constructor_args = array()) Fetches the next row and returns it as an object. The object will be of the class specified by StatementInterface::setFetchMode() or stdClass if not specified. Overrides StatementInterface::fetchObject File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 412 Class StatementPrefetch An implementation of StatementInterface that prefetches all data. Namespace Drupal\Core\Database Code public f