ActiveRow
class ActiveRow implements IteratorAggregate, ArrayAccess
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 24
__construct(array $data, Selection $table)
No description
at line 34
void
setTable(Selection $table)
internal |
No description
at line 43
Selection
getTable()
internal |
No description
at line 49
__toString()
No description
at line 55
array
toArray()
No description
at line 66
mixed
getPrimary(bool $throw = true)
Returns primary key value.
at line 102
string
getSignature(bool $throw = true)
Returns row signature (composition of primary keys)
at line 112
ActiveRow|null
ref(string $key, string|null $throughColumn = null)
Returns referenced row.
at line 126
GroupedSelection
related(string $key, string|null $throughColumn = null)
Returns referencing rows.
at line 140
bool
update(iterable $data)
Updates row.
at line 177
int
delete()
Deletes row.
at line 194
Iterator
getIterator()
No description
at line 209
void
offsetSet(string $column, mixed $value)
Stores value in column.
at line 219
mixed
offsetGet(string $column)
Returns value of column.
at line 229
bool
offsetExists(string $column)
Tests if column exists.
at line 239
void
offsetUnset(string $column)
Removes column from data.
at line 245
void
__set(string $column, mixed $value)
No description
at line 255
mixed
__get(string $key)
No description
at line 273
bool
__isset(string $key)
No description
at line 290
void
__unset(string $key)
No description
at line 299
bool
accessColumn(string|null $key, bool $selectColumn = true)
internal |
No description
at line 314
protected void
removeAccessColumn(string $key)
No description