namespace Nette\Database\Selector
Class TableRow
Single row representation. Selector is based on the great library NotORM http://www.notorm.com written by Jakub Vrana.
- Nette\Object
-
Nette\Database\Selector\TableRow implements IteratorAggregate, Traversable, ArrayAccess
public
|
#
__construct(
array
$data,
TableSelection
$table
)
|
public
string
|
#
__toString(
)
Returns primary key value. Returns primary key value. |
public
array
|
#
toArray(
)
|
public
TableRow
|
#
ref(
string
$name
)
Returns referenced row. Returns referenced row. Parameters$name stringReturnsTableRow or NULL if the row does not exist
|
public
GroupedTableSelection
|
#
related(
string
$table
)
Returns referencing rows. Returns referencing rows. Parameters$table string table name |
public
int
|
#
update(
array
$data = NULL
)
Updates row. Updates row. Parameters$data array or NULL for all modified valuesReturnsint number of affected rows or FALSE in case of an error
|
public
int
|
#
delete(
)
Deletes row. Deletes row. Returnsint number of affected rows or FALSE in case of an error
|
public
|
#
getIterator(
)
Implementation of |
public
|
#
offsetSet(
string
$key,
$value
)
Stores value in column. Stores value in column. Parameters$key string column name$value Implementation of |
public
string
|
#
offsetGet(
string
$key
)
Returns value of column. Returns value of column. Parameters$key string column nameImplementation of |
public
bool
|
#
offsetExists(
string
$key
)
Tests if column exists. Tests if column exists. Parameters$key string column nameImplementation of |
public
|
#
offsetUnset(
string
$key
)
Removes column from data. Removes column from data. Parameters$key string column nameImplementation of |
public
|
#
__set(
$key,
$value
)
|
public
&
|
#
__get(
$key
)
|
public
|
#
__isset(
$key
)
|
public
|
#
__unset(
$key
)
|
public
|
#
access(
$key,
$delete = false
)
|
Methods Inherited From Nette\Object
getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()
protected
TableSelection
|
$table | NULL |
# |
protected
array
|
$data | NULL |
of row data # |