Class Selection
Filtered table representation. Selection is based on the great library NotORM http://www.notorm.com written by Jakub Vrana.
- Nette\Object
- Nette\Database\Table\Selection implements Iterator, Nette\Database\Table\IRowContainer, ArrayAccess, Countable
Direct known subclasses
Nette\Database\Table\GroupedSelection
public
|
#
__construct(
Creates filtered table representation. |
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
string|array|null
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
mixed|false
|
|
public
array
|
|
public
|
|
public
array
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
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
integer
|
#
update( array|
Updates all rows in result set. Joins in UPDATE are supported only in MySQL |
public
integer
|
|
public
|
#
getReferencedTable(
Returns referenced row. |
public
|
#
getReferencingTable( string $table, string $column, integer $active = NULL )
Returns referencing rows. |
public
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
null
|
|
public
|
|
public
boolean
|
|
public
null
|
__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
array
|
$generalCacheTraceKey
|
|
protected
string
|
$specificCacheKey
|
|
protected
array
|
$aggregation
of [conditions => [key => IRow]]; used by GroupedSelection |
# array() |
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 |
# array() |
public read-only
string
|
$sql
|
$reflection
|