jDbResultSet

Implements \Iterator

represent a statement

package

jelix

subpackage

db

Methods

__construct

__construct( $idResult) 

Arguments

$idResult

__destruct

__destruct() 

_fetch

_fetch() 
abstract

_free

_free() 
abstract

_rewind

_rewind() 
abstract

addModifier

addModifier(callback $function) 
since 1.1.6

Arguments

$function

callback

a callback function the function should accept in parameter the record, and the resulset object

applyModifiers

applyModifiers( $result) 

Arguments

$result

not implemented

bindColumn( $column,  &$param,  $type = null) 
abstract

Arguments

$column

$param

$type

not implemented

bindParam( $parameter,  &$variable,  $data_type = null,  $length = null,  $driver_options = null) 
abstract

Arguments

$parameter

$variable

$data_type

$length

$driver_options

not implemented

bindValue( $parameter,  $value,  $data_type) 
abstract

Arguments

$parameter

$value

$data_type

not implemented

columnCount() 
abstract

current

current() 

not implemented

execute( $parameters = null) 
abstract

Arguments

$parameters

fetch a result. The result is returned as an object.

fetch() : object|boolean

Response

object|boolean

result object or false if there is no more result

Return all results in an array. Each result is an object.

fetchAll() : array

Response

array

not implemented

getAttribute( $attr) 

Arguments

$attr

id

id() 

key

key() 

next

next() 

rewind

rewind() 

rowCount

rowCount() 
abstract

not implemented

setAttribute( $attr,  $value) 

Arguments

$attr

$value

set the fetch mode.

setFetchMode(integer $fetchmode, string|object $param = null, array $ctoargs = null) 

Arguments

$fetchmode

integer

FETCH_OBJ, FETCH_CLASS or FETCH_INTO

$param

string|object

class name if FETCH_CLASS, an object if FETCH_INTO. else null.

$ctoargs

array

arguments for the constructor if FETCH_CLASS

unescapeBin

unescapeBin(string $text) : string
since 1.1.6

Arguments

$text

string

a binary string to unescape

Response

string

the unescaped string

valid

valid() 

Properties

_idResult

_idResult : 

Type(s)

_fetchMode

_fetchMode : 

Type(s)

_fetchModeParam

_fetchModeParam : 

Type(s)

_fetchModeCtoArgs

_fetchModeCtoArgs : 

Type(s)

a callback function which will modify on the fly record's value

modifier : array
var

of callback

since

Type(s)

array

_currentRecord

_currentRecord : 

Type(s)

_recordIndex

_recordIndex : 

Type(s)