Default implementation of DatabaseStatementInterface.
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 DatabaseStatementBase extends \PDOStatement implements DatabaseStatementInterface
Expanded class hierarchy of DatabaseStatementBase
See also
http://us.php.net/pdostatement
Related topics
File
- core/
includes/ database/ database.inc, line 2250 - Core systems for the database layer.
Members
Name | Modifiers | Type | Description |
---|---|---|---|
DatabaseStatementBase:: |
public | property | Reference to the database connection object for this statement. |
DatabaseStatementBase:: |
public | function |
Executes a prepared statement Overrides DatabaseStatementInterface:: |
DatabaseStatementBase:: |
public | function |
Returns the result set as an associative array keyed by the given field. Overrides DatabaseStatementInterface:: |
DatabaseStatementBase:: |
public | function |
Returns the entire result set as a single associative array. Overrides DatabaseStatementInterface:: |
DatabaseStatementBase:: |
public | function |
Fetches the next row and returns it as an associative array. Overrides DatabaseStatementInterface:: |
DatabaseStatementBase:: |
public | function |
Returns an entire single column of a result set as an indexed array. Overrides DatabaseStatementInterface:: |
DatabaseStatementBase:: |
public | function |
Returns a single field from the next record of a result set. Overrides DatabaseStatementInterface:: |
DatabaseStatementBase:: |
public | function |
Gets the query string of this statement. Overrides DatabaseStatementInterface:: |
DatabaseStatementBase:: |
protected | function | |
DatabaseStatementInterface:: |
public | function | Returns the number of rows affected by the last SQL statement. |