Class jDbPDOResultSet

Description

a resultset based on PDOStatement

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

PDOStatement
   |
   --jDbPDOResultSet
Class Constant Summary
Variable Summary
mixed $_fetchMode
Method Summary
array fetchAll ([integer $fetch_style = jDbPDOConnection::JPDO_FETCH_OBJ], [integer $column_index = 0], [array $ctor_arg = null])
void setFetchMode (int $mode, [mixed $arg1 = null], [mixed $arg2 = null])
Variables
mixed $_fetchMode = 0 (line 22)
  • access: protected

Inherited Variables

Inherited from PDOStatement (Internal Class)

$queryString
Methods
fetchAll (line 33)

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 = jDbPDOConnection::JPDO_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 50)

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 = ] )

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 20)

Documentation generated on Wed, 07 Sep 2011 13:47:13 +0200 by phpDocumentor 1.4.3