ActiveRow
class ActiveRow implements IteratorAggregate, IRow
Single row representation.
ActiveRow is based on the great library NotORM http://www.notorm.com written by Jakub Vrana.
Methods
No description
No description
Returns primary key value.
Returns row signature (composition of primary keys)
Returns referencing rows.
Updates row.
Deletes row.
No description
Stores value in column.
Returns value of column.
Tests if column exists.
Removes column from data.
No description
No description
No description
No description
No description
Details
at line 31
__construct(array $data, Selection $table)
No description
at line 41
void
setTable(Selection $table)
internal |
No description
at line 50
Selection
getTable()
internal |
No description
at line 56
__toString()
No description
at line 71
array
toArray()
No description
at line 82
mixed
getPrimary(bool $throw = true)
Returns primary key value.
at line 118
string
getSignature(bool $throw = true)
Returns row signature (composition of primary keys)
at line 128
ActiveRow|null
ref(string $key, string|null $throughColumn = null)
Returns referenced row.
at line 142
GroupedSelection
related(string $key, string|null $throughColumn = null)
Returns referencing rows.
at line 156
bool
update(iterable $data)
Updates row.
at line 193
int
delete()
Deletes row.
at line 210
Iterator
getIterator()
No description
at line 225
void
offsetSet(string $column, mixed $value)
Stores value in column.
at line 236
mixed
offsetGet(string $column)
Returns value of column.
at line 247
bool
offsetExists(string $column)
Tests if column exists.
at line 257
void
offsetUnset(string $column)
Removes column from data.
at line 263
__set($column, $value)
No description
at line 273
ActiveRow|mixed
__get(string $key)
No description
at line 291
__isset($key)
No description
at line 308
__unset($key)
No description
at line 317
bool
accessColumn($key, bool $selectColumn = true)
internal |
No description
at line 332
protected void
removeAccessColumn(string $key)
No description