SimplePDO
class SimplePDO extends SimplePDOStatement (View source)
Properties
object | $stmt | PDOStatement object. |
Methods
Returns a single column from the next row of a result set.
Fetch extended error information associated with the last operation on the statement handle.
Store all query parameters for session.
Destructor.
Disconnect from database.
Initiates a transaction .
Commits a transaction.
Rolls back a transaction.
Prepares a statement for execution and returns a statement object.
Binds a parameter to the specified variable name.
Executes a prepared statement
Set the default fetch mode for this statement.
Details
in SimplePDOStatement at line 32
final array
fetchAll()
Returns an array containing all of the result set rows.
in SimplePDOStatement at line 43
final mixed
fetch()
Fetches the next row from a result set.
in SimplePDOStatement at line 54
final mixed
fetchColumn(int $column = 0)
Returns a single column from the next row of a result set.
in SimplePDOStatement at line 65
final mixed
errorInfo()
Fetch extended error information associated with the last operation on the statement handle.
in SimplePDOStatement at line 75
final object
queryStrings($statement)
Store all query strings for session.
in SimplePDOStatement at line 93
final object
queryParams($parameter, $variable, $data_type)
Store all query parameters for session.
in SimplePDOStatement at line 103
final string
fetchQueryStrings()
Fetch query strings/params for session.
at line 34
void
__construct(Configuration $configuration)
Constructor.
at line 70
void
__destruct()
Destructor.
at line 81
final void
disconnect()
Disconnect from database.
at line 91
final object
beginTransaction()
Initiates a transaction .
at line 102
final object
commit()
Commits a transaction.
at line 113
final object
rollBack()
Rolls back a transaction.
at line 126
final object
prepare(string $statement)
Prepares a statement for execution and returns a statement object.
at line 141
final object
bindParam(mixed $parameter, mixed $variable, int $data_type = \PDO::PARAM_STR)
Binds a parameter to the specified variable name.
at line 153
final object
execute()
Executes a prepared statement
at line 164
final object
setFetchMode()
Set the default fetch mode for this statement.