Class Selection
Filtered table representation. Selection is based on the great library NotORM http://www.notorm.com written by Jakub Vrana.
- Nette\Database\Table\Selection implements Iterator, Nette\Database\Table\IRowContainer, ArrayAccess, Countable uses Nette\SmartObject
Direct known subclasses
Nette\Database\Table\GroupedSelection
public
|
#
__construct(
Creates filtered table representation. |
public
|
|
public
|
|
public
string
|
|
public
string|array|null
|
|
public
string|null
|
|
public
|
|
public
string
|
|
public
array|false
|
|
public
|
|
public
|
|
public
|
|
public
mixed|false
|
|
public
array
|
|
public
|
|
public
array
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
integer
|
|
public
integer
|
|
public
integer
|
|
public
integer
|
|
public
integer
|
|
protected
|
|
protected
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
string
|
#
getGeneralCacheKey( )
Returns general cache key independent on query parameters or sql limit Used e.g. for previously accessed columns caching |
protected
string
|
#
getSpecificCacheKey( )
Returns object specific cache key dependent on query parameters Used e.g. for reference memory caching |
public
boolean
|
|
public
|
|
public
boolean
|
|
public
|
|
public
integer
|
|
public
integer
|
|
public
|
#
getReferencedTable(
Returns referenced row. |
public
|
#
getReferencingTable( string $table, string $column, integer $active = null )
Returns referencing rows. |
public
|
|
public
|
|
public
string|integer
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
fetch()
|
protected
|
$context
|
|
protected
|
$conventions
|
|
protected
|
$cache
|
|
protected
|
$sqlBuilder
|
|
protected
string
|
$name
table name |
|
protected
string|array|null
|
$primary
primary key field name |
|
protected
string|boolean
|
$primarySequence
primary column sequence name, false for autodetection |
# false |
protected
|
$rows
data read from database in [primary key => IRow] format |
|
protected
|
$data
modifiable data in [primary key => IRow] format |
|
protected
boolean
|
$dataRefreshed
|
# false |
protected
mixed
|
$globalRefCache
cache array of Selection and GroupedSelection prototypes |
|
protected
mixed
|
$refCache
|
|
protected
string
|
$generalCacheKey
|
|
protected
string
|
$specificCacheKey
|
|
protected
array
|
$aggregation
of [conditions => [key => IRow]]; used by GroupedSelection |
# [] |
protected
array
|
$accessedColumns
of touched columns |
|
protected
array
|
$previousAccessedColumns
of earlier touched columns |
|
protected
boolean
|
$observeCache
should instance observe accessed columns caching |
# false |
protected
array
|
$keys
of primary key values |
# [] |