The handshake between each of the objects. This holds all of the information one will need to build and run the query.

author Andrew Judd
copyright Andrew Judd, 2012
license GPLv3
package Database

 Methods

This function is used in order to clean up the results.

freeResults() 

This function is used in order to retrieve a single row from a result set.

getArray(int $fetchStyle) : array

Parameters

$fetchStyle

int

Controls how the next row will be returned to the caller.

Returns

arrayAn array containing a single row from the caller's query

This function is used in order to retrieve all rows from a result set.

retrieveAllRows(int $fetchStyle) : array

Parameters

$fetchStyle

int

Controls how the next row will be returned to the caller.

Returns

arrayAn array containing all rows from the caller's query

 Properties

 

Will hold an error if something went wrong while executing the query.

$exception : \Exception

 

The inserted ID result from the query.

$insertId : int

 

The number of rows returned by the query.

$numberOfRows : int

 

The parameters as they were passed in.

$originalParameters : mixed

 

The query as passed in by the user.

$originalQuery : string

 

An array of parameters which will be sent into the query.

$parameters : array

 

The query which will be run.

$query : string

 

The database statement which was executed.

$statement : \PDOStatement

 

TRUE if the query is successful, FALSE otherwise.

$success : bool