Property | Type | Description | |
---|---|---|---|
$__owner | owner of this container | ||
$__relation | relationship of the owner to this container | ||
$__removed | removed models |
Method | Description | |
---|---|---|
__construct ( array $data = [] ) : void | Preloads the container. | |
as_array ( ) : array | Return the container contents as an associative array. | |
changed ( ) | ||
factory ( Hive $owner = NULL, Hive_Relation $relation = NULL ) : Hive_Container | Create a new container. | |
offsetSet ( $key, $model ) | ||
offsetUnset ( $key ) : void | Store the removed element, so that it can be managed later. | |
owner ( Hive $owner = NULL ) | ||
relation ( Hive_Relation $relation = NULL ) | ||
values ( array $values = NULL ) |
public __construct ( array $data = [] ) : void | ||
$data | array | |
return | void |
public static factory ( Hive $owner = NULL, Hive_Relation $relation = NULL ) : Hive_Container | ||
$owner | Hive | |
$relation | Hive_Relation | |
return | Hive_Container |
public offsetUnset ( $key ) : void | ||
return | void |