StatementEmpty::setFetchMode

public StatementEmpty::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 $mode i

StatementEmpty::valid

public StatementEmpty::valid() File core/lib/Drupal/Core/Database/StatementEmpty.php, line 144 Class StatementEmpty Empty implementation of a database statement. Namespace Drupal\Core\Database Code public function valid() { return FALSE; }

StatementEmpty::rowCount

public StatementEmpty::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/StatementEmpty.php, line 43 Class StatementEmpty Empty implementation of a database

StatementEmpty::rewind

public StatementEmpty::rewind() File core/lib/Drupal/Core/Database/StatementEmpty.php, line 130 Class StatementEmpty Empty implementation of a database statement. Namespace Drupal\Core\Database Code public function rewind() { // Nothing to do: our DatabaseStatement can't be rewound. }

StatementEmpty::fetchAssoc

public StatementEmpty::fetchAssoc() Fetches the next row and returns it as an associative array. This method corresponds to PDOStatement::fetchObject(), but for associative arrays. For some reason PDOStatement does not have a corresponding array helper method, so one is added. Return value An associative array, or FALSE if there is no next row. Overrides StatementInterface::fetchAssoc File core/lib/Drupal/Core/Database/StatementEmpty.php, line 81 Class StatementEmpty Empty implementation

StatementEmpty::key

public StatementEmpty::key() File core/lib/Drupal/Core/Database/StatementEmpty.php, line 123 Class StatementEmpty Empty implementation of a database statement. Namespace Drupal\Core\Database Code public function key() { return NULL; }

StatementEmpty::fetchObject

public StatementEmpty::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. Overrides StatementInterface::fetchObject File core/lib/Drupal/Core/Database/StatementEmpty.php, line 74 Class StatementEmpty Empty implementation of a database statement. Namespace Drupal\Core\Database Code public function fetchObject() { return NULL; }

StatementEmpty::fetchCol

public StatementEmpty::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. Overrides StatementInterface::fetchCol File core/lib/Drupal/Core/Database/StatementEmpty.php, line 95 Class StatementEmpty Empty implementation of a database statement. Namespace Dru

StatementEmpty::fetchField

public StatementEmpty::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. Overrides StatementInterface::fetchField File core/lib/Drupal/Core/Database/StatementEmpty.php, line 67 Class StatementEmpty Empty implementation of a database statement. Namespace Drupal\Core\Database Co

StatementEmpty::getQueryString

public StatementEmpty::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/StatementEmpty.php, line 36 Class StatementEmpty Empty implementation of a database statement. Namespace Drupal\Core\Database Code public function getQueryString() { return ''; }