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
setTable(Selection $table)
internal |
No description
at line 50
Selection
getTable()
internal |
No description
at line 56
__toString()
No description
at line 70
array
toArray()
No description
at line 81
mixed
getPrimary(bool $throw = true)
Returns primary key value.
at line 116
string
getSignature(bool $throw = true)
Returns row signature (composition of primary keys)
at line 126
IRow|null
ref(string $key, string $throughColumn = null)
Returns referenced row.
at line 140
GroupedSelection
related(string $key, string $throughColumn = null)
Returns referencing rows.
at line 154
bool
update(iterable $data)
Updates row.
at line 189
int
delete()
Deletes row.
at line 206
Iterator
getIterator()
No description
at line 221
void
offsetSet(string $column, mixed $value)
Stores value in column.
at line 232
mixed
offsetGet(string $column)
Returns value of column.
at line 242
bool
offsetExists(string $column)
Tests if column exists.
at line 252
void
offsetUnset(string $column)
Removes column from data.
at line 258
__set($column, $value)
No description
at line 268
ActiveRow|mixed
__get(string $key)
No description
at line 286
__isset($key)
No description
at line 303
__unset($key)
No description
at line 312
bool
accessColumn($key, bool $selectColumn = true)
internal |
No description
at line 325
protected void
removeAccessColumn(string $key)
No description