Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Utils
  • none
  • Tracy
    • Bridges
      • Nette

Classes

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

Interfaces

  • IConventions
  • IReflection
  • IRow
  • IRowContainer
  • IStructure
  • ISupplementalDriver

Exceptions

  • ConnectionException
  • ConstraintViolationException
  • DriverException
  • ForeignKeyConstraintViolationException
  • NotNullConstraintViolationException
  • UniqueConstraintViolationException
  • 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
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
Connection
public string
# getQueryString( )

Returns

string
string
public array
# getParameters( )

Returns

array
array
public integer
# getColumnCount( )

Returns

integer
int
public integer
# getRowCount( )

Returns

integer
int
public float
# getTime( )

Returns

float
float
public array
# normalizeRow( array $row )

Normalizes result row.

Normalizes result row.

Parameters

$row

Returns

array
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( integer $column = 0 )

Fetches single field.

Fetches single field.

Parameters

$column

Returns

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

Parameters

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

Returns

array
array

InheritDoc

Implementation of

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

Returns

Nette\Database\IRow[]
IRow[]

InheritDoc

Implementation of

Nette\Database\IRowContainer::fetchAll()
public array
# fetchAssoc( string $path )

Parameters

$path
descriptor

Returns

array
array

InheritDoc

Implementation of

Nette\Database\IRowContainer::fetchAssoc()
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.3-20161221 API API documentation generated by ApiGen 2.8.0