StatementPrefetch::$data

Main data store. Type: Array File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 46 Class StatementPrefetch An implementation of StatementInterface that prefetches all data. Namespace Drupal\Core\Database Code protected $data = array();

StatementPrefetch::$currentRow

The current row, retrieved in \PDO::FETCH_ASSOC format. Type: Array File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 53 Class StatementPrefetch An implementation of StatementInterface that prefetches all data. Namespace Drupal\Core\Database Code protected $currentRow = NULL;

StatementPrefetch::$currentKey

The key of the current row. Type: int File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 60 Class StatementPrefetch An implementation of StatementInterface that prefetches all data. Namespace Drupal\Core\Database Code protected $currentKey = NULL;

StatementPrefetch::$columnNames

The list of column names in this result set. Type: Array File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 67 Class StatementPrefetch An implementation of StatementInterface that prefetches all data. Namespace Drupal\Core\Database Code protected $columnNames = NULL;

StatementPrefetch::$allowRowCount

Is rowCount() execution allowed. Type: bool File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 127 Class StatementPrefetch An implementation of StatementInterface that prefetches all data. Namespace Drupal\Core\Database Code public $allowRowCount = FALSE;

StatementPrefetch

An implementation of StatementInterface that prefetches all data. This class behaves very similar to a \PDOStatement but as it always fetches every row it is possible to manipulate those results. Hierarchy class \Drupal\Core\Database\StatementPrefetch implements \Iterator, StatementInterface File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 11 Namespace Drupal\Core\Database Members Name Modifiers Type Description StatementPrefetch::$allowRowCount public proper

StatementInterface::setFetchMode

public StatementInterface::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 $mo

StatementInterface::rowCount

public StatementInterface::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 File core/lib/Drupal/Core/Database/StatementInterface.php, line 74 Class StatementInterface Represents a prepared statement. Namespace Drupal\Core\Dat

StatementInterface::getQueryString

public StatementInterface::getQueryString() Gets the query string of this statement. Return value The query string, in its form with placeholders. File core/lib/Drupal/Core/Database/StatementInterface.php, line 62 Class StatementInterface Represents a prepared statement. Namespace Drupal\Core\Database Code public function getQueryString();

StatementInterface::fetchObject

public StatementInterface::fetchObject() 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. File core/lib/Drupal/Core/Database/StatementInterface.php, line 131 Class StatementInterface Represents a prepared statement. Namespace Drupal\Core\Database Code public function fetchObject();