Namespaces

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Diagnostics
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
      • Diagnostics
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • PhpGenerator
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
  • NetteModule
  • none

Classes

  • Connection
  • Context
  • Helpers
  • ResultSet
  • Row
  • SqlLiteral
  • SqlPreprocessor

Interfaces

  • IReflection
  • IRow
  • IRowContainer
  • ISupplementalDriver
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class ResultSet

Represents a result set.

Nette\Object
Extended by Nette\Database\ResultSet implements Iterator, Nette\Database\IRowContainer
Namespace: Nette\Database
Author: David Grudl
Author: Jan Skrasek
Located at Database/ResultSet.php
Methods summary
public
# __construct( Nette\Database\Connection $connection, $queryString, array $params )
public Nette\Database\Connection
# getConnection( )

Returns

Nette\Database\Connection
public string
# getQueryString( )

Returns

string
public array
# getParameters( )

Returns

array
public integer
# getColumnCount( )

Returns

integer
public integer
# getRowCount( )

Returns

integer
public float
# getTime( )

Returns

float
public array
# normalizeRow( array $row )

Normalizes result row.

Normalizes result row.

Parameters

$row
array

Returns

array
public
# dump( )

Displays complete result set as HTML table for debug purposes.

Displays complete result set as HTML table for debug purposes.

public
# rewind( )

Implementation of

Iterator::rewind()
public
# current( )

Implementation of

Iterator::current()
public
# key( )

Implementation of

Iterator::key()
public
# next( )

Implementation of

Iterator::next()
public
# valid( )

Implementation of

Iterator::valid()
public Nette\Database\IRow|boolean
# fetch( )

Returns

Nette\Database\IRow|boolean
if there is no row

InheritDoc

Implementation of

Nette\Database\IRowContainer::fetch()
public mixed|false
# fetchField( $column = 0 )

Fetches single field.

Fetches single field.

Returns

mixed|false
public array
# fetchPairs( string $key = NULL, string $value = NULL )

Parameters

$key
string
column name used for an array key or NULL for numeric index
$value
string
column name used for an array value or NULL for the whole row

Returns

array

InheritDoc

Implementation of

Nette\Database\IRowContainer::fetchPairs()
public Nette\Database\IRow[]
# fetchAll( )

Returns

Nette\Database\IRow[]

InheritDoc

Implementation of

Nette\Database\IRowContainer::fetchAll()
public
# columnCount( )

Deprecated

public
# rowCount( )

Deprecated

Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Magic properties summary
public read-only Nette\Database\Connection $connection
#
Magic properties inherited from Nette\Object
$reflection
Nette 2.1 API documentation generated by ApiGen 2.8.0