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

__construct(array $data, Selection $table)

No description

setTable(Selection $table)

No description

getTable()

No description

__toString()

No description

array
toArray()

No description

getPrimary($need = TRUE)

Returns primary key value.

getSignature($need = TRUE)

Returns row signature (composition of primary keys)

ref($key, $throughColumn = NULL)

Returns referenced row.

related($key, $throughColumn = NULL)

Returns referencing rows.

bool
update($data)

Updates row.

int
delete()

Deletes row.

getIterator()

No description

void
offsetSet($key, $value)

Stores value in column.

string
offsetGet($key)

Returns value of column.

bool
offsetExists($key)

Tests if column exists.

void
offsetUnset($key)

Removes column from data.

__set($key, $value)

No description

ActiveRow|mixed
__get($key)

No description

__isset($key)

No description

__unset($key)

No description

accessColumn($key, $selectColumn = TRUE)

No description

removeAccessColumn($key)

No description

Details

at line 29
__construct(array $data, Selection $table)

No description

Parameters

array $data
Selection $table

at line 39
setTable(Selection $table)

internal  
 

No description

Parameters

Selection $table

at line 48
getTable()

internal  
 

No description

at line 54
__toString()

No description

at line 73
array toArray()

No description

Return Value

array

at line 85
getPrimary($need = TRUE)

Returns primary key value.

Parameters

$need

at line 122
getSignature($need = TRUE)

Returns row signature (composition of primary keys)

Parameters

$need

at line 134
ref($key, $throughColumn = NULL)

Returns referenced row.

Parameters

$key
$throughColumn

Returns referencing rows.

Parameters

$key
$throughColumn

at line 167
bool update($data)

Updates row.

Parameters

$data

Return Value

bool

at line 202
int delete()

Deletes row.

Return Value

int

number of affected rows

at line 219
getIterator()

No description

at line 235
void offsetSet($key, $value)

Stores value in column.

Parameters

$key
$value

Return Value

void

at line 246
string offsetGet($key)

Returns value of column.

Parameters

$key

Return Value

string

at line 257
bool offsetExists($key)

Tests if column exists.

Parameters

$key

Return Value

bool

at line 268
void offsetUnset($key)

Removes column from data.

Parameters

$key

Return Value

void

at line 274
__set($key, $value)

No description

Parameters

$key
$value

at line 285
ActiveRow|mixed __get($key)

No description

Parameters

$key

Return Value

ActiveRow|mixed

Exceptions

MemberAccessException

at line 303
__isset($key)

No description

Parameters

$key

at line 313
__unset($key)

No description

Parameters

$key

at line 322
accessColumn($key, $selectColumn = TRUE)

internal  
 

No description

Parameters

$key
$selectColumn

at line 335
protected removeAccessColumn($key)

No description

Parameters

$key