PHP Class Nette\Database\ResultSet

Inheritance: implements Iterator, implements Nette\Database\IRowContainer, use trait Nette\SmartObject
ファイルを表示 Open project: nette/database Class Usage Examples

Public Methods

Method Description
__construct ( Connection $connection, $queryString, array $params )
current ( )
dump ( ) : void Displays complete result set as HTML table for debug purposes.
fetch ( )
fetchAll ( )
fetchAssoc ( $path )
fetchField ( $column ) : mixed | FALSE Fetches single field.
fetchPairs ( $key = NULL, $value = NULL )
getColumnCount ( ) : integer
getConnection ( ) : Connection
getParameters ( ) : array
getPdoStatement ( ) : PDOStatement
getQueryString ( ) : string
getRowCount ( ) : integer
getTime ( ) : float
key ( )
next ( )
normalizeRow ( $row ) : array Normalizes result row.
rewind ( ) ******************* interface Iterator ****************d*g*
valid ( )

Method Details

__construct() public method

public __construct ( Connection $connection, $queryString, array $params )
$connection Connection
$params array

current() public method

public current ( )

dump() public method

Displays complete result set as HTML table for debug purposes.
public dump ( ) : void
return void

fetch() public method

public fetch ( )

fetchAll() public method

public fetchAll ( )

fetchAssoc() public method

public fetchAssoc ( $path )

fetchField() public method

Fetches single field.
public fetchField ( $column ) : mixed | FALSE
return mixed | FALSE

fetchPairs() public method

public fetchPairs ( $key = NULL, $value = NULL )

getColumnCount() public method

public getColumnCount ( ) : integer
return integer

getConnection() public method

public getConnection ( ) : Connection
return Connection

getParameters() public method

public getParameters ( ) : array
return array

getPdoStatement() public method

public getPdoStatement ( ) : PDOStatement
return PDOStatement

getQueryString() public method

public getQueryString ( ) : string
return string

getRowCount() public method

public getRowCount ( ) : integer
return integer

getTime() public method

public getTime ( ) : float
return float

key() public method

public key ( )

next() public method

public next ( )

normalizeRow() public method

Normalizes result row.
public normalizeRow ( $row ) : array
return array

rewind() public method

******************* interface Iterator ****************d*g*
public rewind ( )

valid() public method

public valid ( )