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

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

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::$dbh

Reference to the Drupal database connection object for this statement. Type: \Drupal\Core\Database\Connection File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 32 Class StatementPrefetch An implementation of StatementInterface that prefetches all data. Namespace Drupal\Core\Database Code public $dbh;

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::$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;

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::fetchCol

public StatementInterface::fetchCol($index = 0) Returns an entire single column of a result set as an indexed array. Note that this method will run the result set to the end. Parameters $index: The index of the column number to fetch. Return value An indexed array, or an empty array if there is no result set. File core/lib/Drupal/Core/Database/StatementInterface.php, line 171 Class StatementInterface Represents a prepared statement. Namespace Drupal\Core\Database Code public function

StatementInterface::fetchField

public StatementInterface::fetchField($index = 0) Returns a single field from the next record of a result set. Parameters $index: The numeric index of the field to return. Defaults to the first field. Return value A single field from the next record, or FALSE if there is no next record. File core/lib/Drupal/Core/Database/StatementInterface.php, line 123 Class StatementInterface Represents a prepared statement. Namespace Drupal\Core\Database Code public function fetchField($index = 0)