Statement::execute

public Statement::execute($args = array(), $options = array()) Executes a prepared statement Parameters $args: An array of values with as many elements as there are bound parameters in the SQL statement being executed. $options: An array of options for this query. Return value TRUE on success, or FALSE on failure. Overrides StatementInterface::execute File core/lib/Drupal/Core/Database/Statement.php, line 42 Class Statement Default implementation of StatementInterface. Namespace Drupa

Statement

Default implementation of StatementInterface. \PDO allows us to extend the \PDOStatement class to provide additional functionality beyond that offered by default. We do need extra functionality. By default, this class is not driver-specific. If a given driver needs to set a custom statement class, it may do so in its constructor. Hierarchy class \Drupal\Core\Database\Statement extends \PDOStatement implements StatementInterface See also http://php.net/pdostatement File core/lib/Drupal/Core/

Statement::$allowRowCount

Is rowCount() execution allowed. Type: bool File core/lib/Drupal/Core/Database/Statement.php, line 32 Class Statement Default implementation of StatementInterface. Namespace Drupal\Core\Database Code public $allowRowCount = FALSE;

Statement::$dbh

Reference to the database connection object for this statement. The name $dbh is inherited from \PDOStatement. Type: \Drupal\Core\Database\Connection File core/lib/Drupal/Core/Database/Statement.php, line 25 Class Statement Default implementation of StatementInterface. Namespace Drupal\Core\Database Code public $dbh;

Statement

SQLite implementation of \Drupal\Core\Database\Statement. The PDO SQLite driver only closes SELECT statements when the PDOStatement destructor is called and SQLite does not allow data change (INSERT, UPDATE etc) on a table which has open SELECT statements. This is a user-space mock of PDOStatement that buffers all the data and doesn't have those limitations. Hierarchy class \Drupal\Core\Database\StatementPrefetch implements \Iterator, StatementInterfaceclass \Drupal\Core\Database\Driver\sqlite\

StateInterface::get

public StateInterface::get($key, $default = NULL) Returns the stored value for a given key. Parameters string $key: The key of the data to retrieve. mixed $default: The default value to use if the key is not found. Return value mixed The stored value, or NULL if no value exists. File core/lib/Drupal/Core/State/StateInterface.php, line 23 Class StateInterface Defines the interface for the state system. Namespace Drupal\Core\State Code public function get($key, $default = NULL);

StateInterface::set

public StateInterface::set($key, $value) Saves a value for a given key. Parameters string $key: The key of the data to store. mixed $value: The data to store. File core/lib/Drupal/Core/State/StateInterface.php, line 44 Class StateInterface Defines the interface for the state system. Namespace Drupal\Core\State Code public function set($key, $value);

StateInterface::getMultiple

public StateInterface::getMultiple(array $keys) Returns the stored key/value pairs for a given set of keys. Parameters array $keys: A list of keys to retrieve. Return value array An associative array of items successfully returned, indexed by key. File core/lib/Drupal/Core/State/StateInterface.php, line 34 Class StateInterface Defines the interface for the state system. Namespace Drupal\Core\State Code public function getMultiple(array $keys);

StateInterface::setMultiple

public StateInterface::setMultiple(array $data) Saves key/value pairs. Parameters array $data: An associative array of key/value pairs. File core/lib/Drupal/Core/State/StateInterface.php, line 52 Class StateInterface Defines the interface for the state system. Namespace Drupal\Core\State Code public function setMultiple(array $data);

StateInterface::resetCache

public StateInterface::resetCache() Resets the static cache. This is mainly used in testing environments. File core/lib/Drupal/Core/State/StateInterface.php, line 75 Class StateInterface Defines the interface for the state system. Namespace Drupal\Core\State Code public function resetCache();