jDbPDOResultSet

Extends \PDOStatement

a resultset based on PDOStatement

package

jelix

subpackage

db

Methods

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

fetch

fetch( $fetch_style = null,  $cursor_orientation = \PDO::FETCH_ORI_NEXT,  $cursor_offset) 

Arguments

$fetch_style

$cursor_orientation

$cursor_offset

return all results from the statement.

fetchAll(integer $fetch_style = null, integer $fetch_argument = null, array $ctor_arg = null) : array

Arguments

$fetch_style

integer

$fetch_argument

integer

$ctor_arg

array

Response

array

list of object which contain all rows

Set the fetch mode.

setFetchMode(integer $mode, mixed $arg1 = null, mixed $arg2 = null) : boolean

Arguments

$mode

integer

the mode, a PDO::FETCH_* constant

$arg1

mixed

a parameter for the given mode

$arg2

mixed

a parameter for the given mode

Response

boolean

true if the fetch mode is ok

unescapeBin

unescapeBin(string $text) : string
since 1.1.6

Arguments

$text

string

a binary string to unescape

Response

string

the unescaped string

Properties

_fetchMode

_fetchMode : 

Type(s)

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

modifier : array
var

of callback

since

Type(s)

array