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\GroupedSelectionAuthor: Jakub Vrana
Author: Jan Skrasek
Located at Database/Table/Selection.php
public
|
#
__construct(
Creates filtered table representation. |
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
string|array
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
array
|
|
public
|
|
public
|
|
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( string $table, string $column, mixed $checkPrimaryKey )
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
|
$connection |
|
|
protected
|
$reflection |
|
|
protected
|
$cache |
|
|
protected
|
$sqlBuilder |
|
|
protected
string
|
$name |
|
#
table name |
protected
string
|
$primary |
|
#
primary key field name |
protected
string|boolean
|
$primarySequence | FALSE |
#
primary column sequence name, FALSE for autodetection |
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 | array() |
#
of [conditions => [key => IRow]]; used by GroupedSelection |
protected
array
|
$accessedColumns |
|
#
of touched columns |
protected
array
|
$previousAccessedColumns |
|
#
of earlier touched columns |
protected
boolean
|
$observeCache | FALSE |
#
should instance observe accessed columns caching |
protected
array
|
$keys | array() |
#
of primary key values |
public read-only
string
|
$sql |
$reflection
|