Class ActiveRow
Single row representation. ActiveRow is based on the great library NotORM http://www.notorm.com written by Jakub
Vrana.
-
Nette\Database\Table\ActiveRow
implements
IteratorAggregate,
Nette\Database\Table\IRow
Methods summary
public
|
|
public
|
|
public
array
|
|
public
mixed
|
#
getPrimary( boolean $need = TRUE )
Returns primary key value.
Returns primary key value.
Parameters
Returns
mixed possible int, string, array, object (Nette\Utils\DateTime)
Implementation of
|
public
string
|
#
getSignature( boolean $need = TRUE )
Returns row signature (composition of primary keys)
Returns row signature (composition of primary keys)
Parameters
Returns
string
Implementation of
|
public
Nette\Database\Table\IRow
|
#
ref( string $key, string $throughColumn = NULL )
Returns referenced row.
Parameters
- $key
string
- $throughColumn
string
Returns
Implementation of
|
public
Nette\Database\Table\GroupedSelection
|
#
related( string $key, string $throughColumn = NULL )
Returns referencing rows.
Returns referencing rows.
Parameters
- $key
string
- $throughColumn
string
Returns
Implementation of
|
public
boolean
|
|
public
integer
|
#
delete( )
Deletes row.
Returns
integer number of affected rows
|
public
|
|
public
|
#
offsetSet( string $key, string $value )
Stores value in column.
Parameters
- $key
string column name
- $value
string value
Implementation of
|
public
string
|
#
offsetGet( string $key )
Returns value of column.
Parameters
Returns
string
Implementation of
|
public
boolean
|
#
offsetExists( string $key )
Tests if column exists.
Parameters
Returns
boolean
Implementation of
|
public
|
#
offsetUnset( string $key )
Removes column from data.
Removes column from data.
Parameters
Implementation of
|
public
|
|
public
&
|
|
public
|
|
public
|
|
protected
|
|