\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 : 

Data pulled from query

Type

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
mixed $param
integer $type
mixed $maxlen
array $driverdata

Returns

NULL

bindParam()

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

Invalidate method for data consistency

Parameters

mixed $parameter
mixed $variable
integer $data_type
mixed $maxlen
array $driverdata

Returns

NULL

bindValue()

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

Invalidate method for data consistency

Parameters

mixed $parameter
mixed $variable
integer $data_type

Returns

NULL

execute()

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

Run a prepared statement query

Parameters

array $args

Returns

\Query\Drivers\Firebird\Result

fetch()

fetch(integer  $fetch_style = \PDO::FETCH_ASSOC, mixed  $cursor_orientation = \PDO::FETCH_ORI_NEXT, mixed  $cursor_offset = NULL) : mixed

Emulate PDO fetch public function

Parameters

integer $fetch_style
mixed $cursor_orientation
mixed $cursor_offset

Returns

mixed

fetchAll()

fetchAll(integer  $fetch_style = \PDO::FETCH_ASSOC, mixed  $statement = NULL, mixed  $ctor_args = NULL) : mixed

Emulate PDO fetchAll public function

Parameters

integer $fetch_style
mixed $statement
mixed $ctor_args

Returns

mixed

fetchColumn()

fetchColumn(integer  $column_num) : mixed

Emulate PDOStatement::fetchColumn

Parameters

integer $column_num

Returns

mixed

fetchObject()

fetchObject(string  $class_name = 'stdClass', array  $ctor_args = array()) : \Query\Drivers\Firebird\stdClass

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

Parameters

string $class_name
array $ctor_args

Returns

\Query\Drivers\Firebird\stdClass

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