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

package Query
subpackage Drivers

 Methods

Create the object by passing the resource for the query

__construct(resource $link) 

Parameters

$link

resource

Invalidate method for data consistency

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

Parameters

$column

mixed

$param

$type

int

$maxlen

mixed

$driverdata

array

Returns

NULL

Invalidate method for data consistency

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

Parameters

$parameter

mixed

$variable

$data_type

int

$maxlen

mixed

$driverdata

array

Returns

NULL

Invalidate method for data consistency

bindValue(mixed $parameter, $variable, int $data_type) : NULL

Parameters

$parameter

mixed

$variable

$data_type

int

Returns

NULL

Method to emulate PDOStatement->errorCode

errorCode() : string

Returns

string

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

errorInfo() : array

Returns

array

Run a prepared statement query

execute(array $args) : bool

Parameters

$args

array

Returns

bool

Emulate PDO fetch public function

fetch(int $fetch_style, $cursor_orientation, $cursor_offset) : mixed

Parameters

$fetch_style

int

$cursor_orientation

$cursor_offset

Returns

mixed

Emulate PDO fetchAll public function

fetchAll(int $fetch_style, mixed $statement, mixed $ctor_args) : mixed

Parameters

$fetch_style

int

$statement

mixed

$ctor_args

mixed

Returns

mixed

Emulate PDOStatement::fetchColumn

fetchColumn(int $column_num) : mixed

Parameters

$column_num

int

Returns

mixed

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

fetchObject(string $class_name, array $ctor_args) : \stdClass

Parameters

$class_name

string

$ctor_args

array

Returns

Return the number of rows affected by the previous query

rowCount() : int

Returns

int

 Properties

 

Data pulled from query

$result 
param
 

Current row in result array

$row : int
 

Reference to fbird resource

$statement : resource