Class jDbResultSet

Description

Implements interfaces:

  • Iterator (internal interface)

represent a statement

  • abstract:

Located in /db/jDbResultSet.class.php (line 16)


	
			
Direct descendents
Class Description
mysqlDbResultSet Couche d'encapsulation des resultset mysql.
sqlite3DbResultSet Couche d'encapsulation des resultset sqlite.
mysqliDbResultSet Object to fetch result, wrapping the underlaying result object of mysqli
sqliteDbResultSet Couche d'encapsulation des resultset sqlite.
pgsqlDbResultSet
mssqlDbResultSet Layer encapsulation resultset mssql.
Variable Summary
Method Summary
jDbResultSet __construct ( $idResult)
void __destruct ()
void addModifier (callback $function)
void bindColumn ( $column,  &$param, [ $type = null])
void bindParam ( $parameter,  &$variable, [ $data_type = null], [ $length = null], [ $driver_options = null])
void bindValue ( $parameter,  $value,  $data_type)
void columnCount ()
void current ()
void execute ([ $parameters = null])
object|boolean fetch ()
array fetchAll ()
void getAttribute ( $attr)
void id ()
void key ()
void next ()
void rewind ()
void rowCount ()
void setAttribute ( $attr,  $value)
void setFetchMode (integer $fetchmode, [string|object $param = null], [array $ctoargs = null])
void unescapeBin (string $text)
void valid ()
void _fetch ()
void _free ()
void _rewind ()
Variables
array $modifier = array() (line 49)

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

  • var: of callback
  • since: 1.1.6
  • access: protected
mixed $_currentRecord = false (line 160)
  • access: protected
mixed $_fetchMode = 0 (line 19)
  • access: protected
mixed $_fetchModeCtoArgs = null (line 21)
  • access: protected
mixed $_fetchModeParam = null (line 20)
  • access: protected
mixed $_idResult = null (line 18)
  • access: protected
mixed $_recordIndex = 0 (line 161)
  • access: protected
Methods
Constructor __construct (line 23)
jDbResultSet __construct ( $idResult)
  • $idResult

Redefined in descendants as:
Destructor __destruct (line 27)
void __destruct ()
addModifier (line 57)
  • since: 1.1.6
  • access: public
void addModifier (callback $function)
  • callback $function: a callback function the function should accept in parameter the record, and the resulset object
bindColumn (line 134)

not implemented

  • abstract:
  • access: public
void bindColumn ( $column,  &$param, [ $type = null])
  • $column
  • &$param
  • $type

Redefined in descendants as:
bindParam (line 138)

not implemented

  • abstract:
  • access: public
void bindParam ( $parameter,  &$variable, [ $data_type = null], [ $length = null], [ $driver_options = null])
  • $parameter
  • &$variable
  • $data_type
  • $length
  • $driver_options

Redefined in descendants as:
bindValue (line 142)

not implemented

  • abstract:
  • access: public
void bindValue ( $parameter,  $value,  $data_type)
  • $parameter
  • $value
  • $data_type

Redefined in descendants as:
current (line 163)
  • access: public
void current ()

Implementation of:
Iterator::current
execute (line 151)

not implemented

  • abstract:
  • access: public
void execute ([ $parameters = null])
  • $parameters

Redefined in descendants as:
fetch (line 76)

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

  • return: result object or false if there is no more result
  • access: public
object|boolean fetch ()

Redefined in descendants as:
fetchAll (line 114)

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

  • access: public
array fetchAll ()
getAttribute (line 125)

not implemented

  • access: public
void getAttribute ( $attr)
  • $attr
id (line 34)
  • access: public
void id ()
key (line 167)
  • access: public
void key ()

Implementation of:
Iterator::key
next (line 171)
  • access: public
void next ()

Implementation of:
Iterator::next
rewind (line 177)
  • access: public
void rewind ()

Implementation of:
Iterator::rewind
setAttribute (line 129)

not implemented

  • access: public
void setAttribute ( $attr,  $value)
  • $attr
  • $value
setFetchMode (line 67)

set the fetch mode.

  • access: public
void setFetchMode (integer $fetchmode, [string|object $param = null], [array $ctoargs = null])
  • integer $fetchmode: FETCH_OBJ, FETCH_CLASS or FETCH_INTO
  • string|object $param: class name if FETCH_CLASS, an object if FETCH_INTO. else null.
  • array $ctoargs: arguments for the constructor if FETCH_CLASS
unescapeBin (line 40)
  • since: 1.1.6
  • access: public
void unescapeBin (string $text)
  • string $text: a binary string to unescape

Redefined in descendants as:
valid (line 183)
  • access: public
void valid ()

Implementation of:
Iterator::valid

Documentation generated on Wed, 04 Jan 2017 22:53:50 +0100 by phpDocumentor 1.4.3