\Query\Drivers\FirebirdResult

Firebird result class to emulate PDOStatement Class - only implements data-fetching methods

Summary

Methods
Properties
Constants
__construct()
bindColumn()
bindParam()
bindValue()
execute()
fetch()
fetchAll()
fetchColumn()
fetchObject()
rowCount()
errorCode()
errorInfo()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$statement
$row
$result
$db
N/A

Properties

$statement

$statement : resource

Reference to fbird resource

Type

resource

$row

$row : integer

Current row in result array

Type

integer

$result

$result : mixed

Data pulled from query

Type

mixed

Methods

__construct()

__construct(resource  $link, \Query\Drivers\Firebird\Driver|null  $db = NULL) 

Create the object by passing the resource for the query

Parameters

resource $link
\Query\Drivers\Firebird\Driver|null $db

bindColumn()

bindColumn(mixed  $column, mixed  $param, integer  $type = NULL, mixed  $maxlen = NULL, array  $driverdata = NULL) : NULL

Invalidate method for data consistency

Parameters

mixed $column

Number or name of the column in the result set

mixed $param

Name of the PHP variable to which the column will be bound

integer $type

Data type of the parameter, specified by the PDO::PARAM_* constants

mixed $maxlen

A hint for pre-allocation

array $driverdata

Optional parameter(s) for the driver

Returns

NULL

bindParam()

bindParam(mixed  $parameter, mixed  $variable, integer  $dataType = NULL, mixed  $maxlen = NULL, array  $driverdata = NULL) : NULL

Invalidate method for data consistency

Parameters

mixed $parameter

Parameter identifier. For a prepared statement using named placeholders, this will be a parameter name of the form :name. For a prepared statement using question mark placeholders, this will be the 1-indexed position of the parameter.

mixed $variable

Name of the PHP variable to bind to the SQL statement parameter.

integer $dataType

Explicit data type for the parameter using the PDO::PARAM_* constants. To return an INOUT parameter from a stored procedure, use the bitwise OR operator to set the PDO::PARAM_INPUT_OUTPUT bits for the data_type parameter.

mixed $maxlen
array $driverdata

Returns

NULL

bindValue()

bindValue(mixed  $parameter, mixed  $variable, integer  $dataType = NULL) : NULL

Invalidate method for data consistency

Parameters

mixed $parameter

Parameter identifier. For a prepared statement using named placeholders, this will be a parameter name of the form :name. For a prepared statement using question mark placeholders, this will be the 1-indexed position of the parameter.

mixed $variable
integer $dataType

Explicit data type for the parameter using the PDO::PARAM_* constants.

Returns

NULL

execute()

execute(array  $boundInputParams = NULL) : \Query\Drivers\Firebird\Result

Run a prepared statement query

Parameters

array $boundInputParams

Returns

\Query\Drivers\Firebird\Result

fetch()

fetch(integer  $fetchStyle = \PDO::FETCH_ASSOC, mixed  $cursorOrientation = \PDO::FETCH_ORI_NEXT, mixed  $cursorOffset = NULL) : mixed

Emulate PDO fetch public function

Parameters

integer $fetchStyle
mixed $cursorOrientation
mixed $cursorOffset

Returns

mixed

fetchAll()

fetchAll(integer  $fetchStyle = \PDO::FETCH_ASSOC, mixed  $statement = NULL, mixed  $ctorArgs = NULL) : mixed

Emulate PDO fetchAll public function

Parameters

integer $fetchStyle
mixed $statement
mixed $ctorArgs

Returns

mixed

fetchColumn()

fetchColumn(integer  $columnNum) : mixed

Emulate PDOStatement::fetchColumn

Parameters

integer $columnNum

Returns

mixed

fetchObject()

fetchObject(string  $className = 'stdClass', array|null  $ctorArgs = NULL) : object

Emulate PDOStatement::fetchObject, but only for the default use

Parameters

string $className
array|null $ctorArgs

Returns

object

rowCount()

rowCount() : integer

Return the number of rows affected by the previous query

Returns

integer

errorCode()

errorCode() : string

Method to emulate PDOStatement->errorCode

Returns

string

errorInfo()

errorInfo() : array

Method to emulate PDO->errorInfo / PDOStatement->errorInfo

Returns

array