Class jDbPDOResultSet

Description

a resultset based on PDOStatement

Located in /db/jDbPDOConnection.class.php (line 19)

PDOStatement
   |
   --jDbPDOResultSet
Class Constant Summary
Variable Summary
array $modifier
mixed $_fetchMode
Method Summary
void addModifier (callback $function)
void fetch ([ $fetch_style = PDO::FETCH_BOTH], [ $cursor_orientation = PDO::FETCH_ORI_NEXT], [ $cursor_offset = 0])
array fetchAll ([integer $fetch_style = PDO::FETCH_OBJ], [integer $column_index = 0], [array $ctor_arg = null])
void setFetchMode (int $mode, [mixed $arg1 = null], [mixed $arg2 = null])
void unescapeBin (string $text)
Variables
array $modifier = array() (line 85)

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

  • var: of callback
  • since: 1.1.6
  • access: protected
mixed $_fetchMode = 0 (line 23)
  • access: protected

Inherited Variables

Inherited from PDOStatement (Internal Class)

$queryString
Methods
addModifier (line 93)
  • 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
fetch (line 26)
  • access: public
void fetch ([ $fetch_style = PDO::FETCH_BOTH], [ $cursor_orientation = PDO::FETCH_ORI_NEXT],  $cursor_offset)
  • $fetch_style
  • $cursor_orientation
  • $cursor_offset

Redefinition of:
PDOStatement::fetch ( [$how = ], [$orientation = ], [$offset = ] )
fetchAll (line 44)

return all results from the statement.

Arguments are ignored. JDb don't care about it (fetch always as classes or objects) But there are here because of the compatibility of internal methods of PDOStatement

  • return: list of object which contain all rows
  • access: public
array fetchAll ([integer $fetch_style = PDO::FETCH_OBJ], integer $column_index, [array $ctor_arg = null])
  • integer $fetch_style: ignored
  • integer $column_index
  • array $ctor_arg: (ignored)

Redefinition of:
PDOStatement::fetchAll ( [$how = ], [$class_name = ], [$ctor_args = ] )
setFetchMode (line 61)

Set the fetch mode.

  • access: public
void setFetchMode (int $mode, [mixed $arg1 = null], [mixed $arg2 = null])
  • int $mode: the mode, a PDO::FETCH_* constant
  • mixed $arg1: a parameter for the given mode
  • mixed $arg2: a parameter for the given mode

Redefinition of:
PDOStatement::setFetchMode ( $mode, [$params = ] )
unescapeBin (line 76)
  • since: 1.1.6
  • access: public
void unescapeBin (string $text)
  • string $text: a binary string to unescape

Inherited Methods

Inherited From PDOStatement (Internal Class)

bindColumn ( $column, &$param, [$type = ], [$maxlen = ], [$driverdata = ] )
bindParam ( $paramno, &$param, [$type = ], [$maxlen = ], [$driverdata = ] )
bindValue ( $paramno, $param, [$type = ] )
closeCursor ( )
columnCount ( )
debugDumpParams ( )
errorCode ( )
errorInfo ( )
execute ( [$bound_input_params = ] )
fetch ( [$how = ], [$orientation = ], [$offset = ] )
fetchAll ( [$how = ], [$class_name = ], [$ctor_args = ] )
fetchColumn ( [$column_number = ] )
fetchObject ( [$class_name = ], [$ctor_args = ] )
getAttribute ( $attribute )
getColumnMeta ( $column )
nextRowset ( )
rowCount ( )
setAttribute ( $attribute, $value )
setFetchMode ( $mode, [$params = ] )
__sleep ( )
__wakeup ( )
Class Constants
FETCH_CLASS = 8 (line 21)

Documentation generated on Thu, 22 Mar 2012 22:15:20 +0100 by phpDocumentor 1.4.3