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, mixed $param, int $type = NULL
, mixed $maxlen = NULL
, array $driverdata = NULL
) : NULL
Parameters
$column
mixed
$param
mixed
$type
int
$maxlen
mixed
$driverdata
array
Returns
NULL
Invalidate method for data consistency
bindParam(mixed $parameter, mixed $variable, int $data_type = NULL
, mixed $maxlen = NULL
, array $driverdata = NULL
) : NULL
Parameters
$parameter
mixed
$variable
mixed
$data_type
int
$maxlen
mixed
$driverdata
array
Returns
NULL
Invalidate method for data consistency
bindValue(mixed $parameter, mixed $variable, int $data_type = NULL
) : NULL
Parameters
$parameter
mixed
$variable
mixed
$data_type
int
Returns
NULL
Method to emulate PDOStatement->errorCode
errorCode() : string
Method to emulate PDO->errorInfo / PDOStatement->errorInfo
errorInfo() : array
Emulate PDO fetch public function
fetch(int $fetch_style = \PDO::FETCH_ASSOC
, mixed $cursor_orientation = \PDO::FETCH_ORI_NEXT
, mixed $cursor_offset = NULL
) : mixed
Parameters
$fetch_style
int
$cursor_orientation
mixed
$cursor_offset
mixed
Returns
mixed
Emulate PDO fetchAll public function
fetchAll(int $fetch_style = \PDO::FETCH_ASSOC
, mixed $statement = NULL
, mixed $ctor_args = NULL
) : mixed
Parameters
$fetch_style
int
$statement
mixed
$ctor_args
mixed
Returns
mixed
Emulate PDOStatement::fetchColumn
fetchColumn(int $column_num = 0
) : mixed
Parameters
$column_num
int
Returns
mixed
Emulate PDOStatement::fetchObject, but only for the default use
fetchObject(string $class_name = 'stdClass'
, array $ctor_args = array()
) : \Query\Driver\stdClass
Parameters
$class_name
string
$ctor_args
array
Returns
Return the number of rows affected by the previous query
rowCount() : int
Properties
Data pulled from query
$result
Current row in result array
$row : int
Reference to fbird resource
$statement : resource