pgsqlDbResultSet
extends jDbResultSet
in package
represent a statement
Tags
Table of Contents
- $_cnt : mixed
- $_currentRecord : mixed
- $_fetchMode : mixed
- $_fetchModeCtoArgs : mixed
- $_fetchModeParam : mixed
- $_idResult : mixed
- $_recordIndex : mixed
- $_stmtId : mixed
- $modifier : array<string|int, callable>
- a callback function which will modify on the fly record's value
- __construct() : mixed
- __destruct() : mixed
- addModifier() : mixed
- bindColumn() : mixed
- not implemented
- bindParam() : mixed
- not implemented
- bindValue() : mixed
- not implemented
- columnCount() : mixed
- not implemented
- current() : mixed
- execute() : mixed
- not implemented
- fetch() : object|bool
- fetch a result. The result is returned as an object.
- fetchAll() : array<string|int, object>
- Return all results in an array. Each result is an object.
- getAttribute() : mixed
- not implemented
- id() : mixed
- key() : mixed
- next() : mixed
- rewind() : mixed
- rowCount() : mixed
- setAttribute() : mixed
- not implemented
- setFetchMode() : mixed
- set the fetch mode.
- unescapeBin() : string
- valid() : mixed
- _fetch() : mixed
- _free() : mixed
- _rewind() : mixed
- applyModifiers() : mixed
Properties
$_cnt
protected
mixed
$_cnt
$_currentRecord
protected
mixed
$_currentRecord
= alse
$_fetchMode
protected
mixed
$_fetchMode
= 0
$_fetchModeCtoArgs
protected
mixed
$_fetchModeCtoArgs
=
ull
$_fetchModeParam
protected
mixed
$_fetchModeParam
=
ull
$_idResult
protected
mixed
$_idResult
=
ull
$_recordIndex
protected
mixed
$_recordIndex
= 0
$_stmtId
protected
mixed
$_stmtId
$modifier
a callback function which will modify on the fly record's value
protected
array<string|int, callable>
$modifier
= array()
Tags
Methods
__construct()
public
__construct(mixed $idResult[, mixed $stmtId = null ][, mixed $cnt = null ]) : mixed
Parameters
- $idResult : mixed
- $stmtId : mixed = null
- $cnt : mixed = null
Return values
mixed —__destruct()
public
__destruct() : mixed
Return values
mixed —addModifier()
public
addModifier(callable $function) : mixed
Parameters
- $function : callable
-
a callback function the function should accept in parameter the record, and the resulset object
Tags
Return values
mixed —bindColumn()
not implemented
public
bindColumn(mixed $column, mixed &$param[, mixed $type = null ]) : mixed
Parameters
- $column : mixed
- $param : mixed
- $type : mixed = null
Return values
mixed —bindParam()
not implemented
public
bindParam(mixed $parameter, mixed &$variable[, mixed $data_type = null ][, mixed $length = null ][, mixed $driver_options = null ]) : mixed
Parameters
- $parameter : mixed
- $variable : mixed
- $data_type : mixed = null
- $length : mixed = null
- $driver_options : mixed = null
Return values
mixed —bindValue()
not implemented
public
bindValue(mixed $parameter, mixed $value, mixed $data_type) : mixed
Parameters
- $parameter : mixed
- $value : mixed
- $data_type : mixed
Return values
mixed —columnCount()
not implemented
public
columnCount() : mixed
Return values
mixed —current()
public
current() : mixed
Return values
mixed —execute()
not implemented
public
execute([mixed $parameters = array() ]) : mixed
Parameters
- $parameters : mixed = array()
Return values
mixed —fetch()
fetch a result. The result is returned as an object.
public
fetch() : object|bool
Return values
object|bool —result object or false if there is no more result
fetchAll()
Return all results in an array. Each result is an object.
public
fetchAll() : array<string|int, object>
Return values
array<string|int, object> —getAttribute()
not implemented
public
getAttribute(mixed $attr) : mixed
Parameters
- $attr : mixed
Return values
mixed —id()
public
id() : mixed
Return values
mixed —key()
public
key() : mixed
Return values
mixed —next()
public
next() : mixed
Return values
mixed —rewind()
public
rewind() : mixed
Return values
mixed —rowCount()
public
rowCount() : mixed
Return values
mixed —setAttribute()
not implemented
public
setAttribute(mixed $attr, mixed $value) : mixed
Parameters
- $attr : mixed
- $value : mixed
Return values
mixed —setFetchMode()
set the fetch mode.
public
setFetchMode(int $fetchmode[, string|object $param = null ][, array<string|int, mixed> $ctoargs = null ]) : mixed
Parameters
- $fetchmode : int
-
FETCH_OBJ, FETCH_CLASS or FETCH_INTO
- $param : string|object = null
-
class name if FETCH_CLASS, an object if FETCH_INTO. else null.
- $ctoargs : array<string|int, mixed> = null
-
arguments for the constructor if FETCH_CLASS
Return values
mixed —unescapeBin()
public
unescapeBin(mixed $text) : string
Parameters
- $text : mixed
-
a binary string to unescape
Return values
string —the unescaped string
valid()
public
valid() : mixed
Return values
mixed —_fetch()
protected
_fetch() : mixed
Return values
mixed —_free()
protected
_free() : mixed
Return values
mixed —_rewind()
protected
_rewind() : mixed
Return values
mixed —applyModifiers()
protected
applyModifiers(mixed $result) : mixed
Parameters
- $result : mixed