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
No description
Details
at line 28
__construct(array $data, Selection $table)
No description
at line 38
void
setTable(Selection $table)
internal |
No description
at line 47
Selection
getTable()
internal |
No description
at line 53
__toString()
No description
at line 59
array
toArray()
No description
at line 70
mixed
getPrimary(bool $throw = true)
Returns primary key value.
at line 106
string
getSignature(bool $throw = true)
Returns row signature (composition of primary keys)
at line 116
ActiveRow|null
ref(string $key, string|null $throughColumn = null)
Returns referenced row.
at line 130
GroupedSelection
related(string $key, string|null $throughColumn = null)
Returns referencing rows.
at line 144
bool
update(iterable $data)
Updates row.
at line 181
int
delete()
Deletes row.
at line 198
Iterator
getIterator()
No description
at line 213
void
offsetSet(string $column, mixed $value)
Stores value in column.
at line 223
mixed
offsetGet(string $column)
Returns value of column.
at line 233
bool
offsetExists(string $column)
Tests if column exists.
at line 243
void
offsetUnset(string $column)
Removes column from data.
at line 249
__set($column, $value)
No description
at line 259
mixed
__get(string $key)
No description
at line 277
__isset($key)
No description
at line 294
__unset($key)
No description
at line 303
bool
accessColumn($key, bool $selectColumn = true)
internal |
No description
at line 318
protected void
removeAccessColumn(string $key)
No description