class SimplePDO extends SimplePDOStatement (View source)

Properties

object $stmt PDOStatement object.

Methods

array
fetchAll()

Returns an array containing all of the result set rows.

mixed
fetch()

Fetches the next row from a result set.

mixed
fetchColumn(int $column = 0)

Returns a single column from the next row of a result set.

mixed
errorInfo()

Fetch extended error information associated with the last operation on the statement handle.

object
queryStrings($statement)

Store all query strings for session.

object
queryParams($parameter, $variable, $data_type)

Store all query parameters for session.

string
fetchQueryStrings()

Fetch query strings/params for session.

void
__construct(Configuration $configuration)

Constructor.

void
__destruct()

Destructor.

void
disconnect()

Disconnect from database.

object
beginTransaction()

Initiates a transaction .

object
commit()

Commits a transaction.

object
rollBack()

Rolls back a transaction.

object
prepare(string $statement)

Prepares a statement for execution and returns a statement object.

object
bindParam(mixed $parameter, mixed $variable, int $data_type = \PDO::PARAM_STR)

Binds a parameter to the specified variable name.

object
execute()

Executes a prepared statement

object
setFetchMode()

Set the default fetch mode for this statement.

Details

final array fetchAll()

Returns an array containing all of the result set rows.

Return Value

array

final mixed fetch()

Fetches the next row from a result set.

Return Value

mixed

final mixed fetchColumn(int $column = 0)

Returns a single column from the next row of a result set.

Parameters

int $column 0-indexed number of the column you wish to retrieve from the row

Return Value

mixed

final mixed errorInfo()

Fetch extended error information associated with the last operation on the statement handle.

Return Value

mixed

final object queryStrings($statement)

Store all query strings for session.

Parameters

$statement

Return Value

object

final object queryParams($parameter, $variable, $data_type)

Store all query parameters for session.

Parameters

$parameter
$variable
$data_type

Return Value

object

final string fetchQueryStrings()

Fetch query strings/params for session.

Return Value

string

void __construct(Configuration $configuration)

Constructor.

Parameters

Configuration $configuration PDO2\Configuration object

Return Value

void

Exceptions

RuntimeException if no supported PDO driver found used

void __destruct()

Destructor.

Return Value

void

final void disconnect()

Disconnect from database.

Return Value

void

final object beginTransaction()

Initiates a transaction .

Return Value

object

final object commit()

Commits a transaction.

Return Value

object

final object rollBack()

Rolls back a transaction.

Return Value

object

final object prepare(string $statement)

Prepares a statement for execution and returns a statement object.

Parameters

string $statement valid SQL statement

Return Value

object

final object bindParam(mixed $parameter, mixed $variable, int $data_type = \PDO::PARAM_STR)

Binds a parameter to the specified variable name.

Parameters

mixed $parameter parameter identifier
mixed $variable name of the variable to bind to the SQL statement parameter
int $data_type explicit data type for the parameter

Return Value

object

final object execute()

Executes a prepared statement

Return Value

object

final object setFetchMode()

Set the default fetch mode for this statement.

Return Value

object