Empty implementation of a database statement.
This class satisfies the requirements of being a database statement/result object, but does not actually contain data. It is useful when developers need to safely return an "empty" result set without connecting to an actual database. Calling code can then treat it the same as if it were an actual result set that happens to contain no records.
Expanded class hierarchy of StatementEmpty
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
StatementEmpty:: |
public | function | ||
StatementEmpty:: |
public | function |
Executes a prepared statement Overrides StatementInterface:: |
|
StatementEmpty:: |
public | function | ||
StatementEmpty:: |
function | |||
StatementEmpty:: |
public | function |
Returns the result set as an associative array keyed by the given field. Overrides StatementInterface:: |
|
StatementEmpty:: |
public | function |
Returns the entire result set as a single associative array. Overrides StatementInterface:: |
|
StatementEmpty:: |
public | function |
Fetches the next row and returns it as an associative array. Overrides StatementInterface:: |
|
StatementEmpty:: |
public | function |
Returns an entire single column of a result set as an indexed array. Overrides StatementInterface:: |
|
StatementEmpty:: |
public | function |
Returns a single field from the next record of a result set. Overrides StatementInterface:: |
|
StatementEmpty:: |
public | function | ||
StatementEmpty:: |
public | function |
Gets the query string of this statement. Overrides StatementInterface:: |
|
StatementEmpty:: |
public | function | ||
StatementEmpty:: |
public | function | ||
StatementEmpty:: |
public | function | ||
StatementEmpty:: |
public | function |
Returns the number of rows affected by the last SQL statement. Overrides StatementInterface:: |
|
StatementEmpty:: |
public | function | ||
StatementEmpty:: |
public | function |