PHP Class Hive_Container, hive

Author: Woody Gilk ([email protected])
Inheritance: extends ArrayObject
Afficher le fichier Open project: shadowhand/hive Class Usage Examples

Protected Properties

Свойство Type Description
$__owner owner of this container
$__relation relationship of the owner to this container
$__removed removed models

Méthodes publiques

Méthode 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 )

Method Details

__construct() public méthode

$containter = new Hive_Container;
public __construct ( array $data = [] ) : void
$data array
Résultat void

as_array() public méthode

$array = $container->as_array();
public as_array ( ) : array
Résultat array

changed() public méthode

public changed ( )

factory() public static méthode

$container = Hive_Container::factory($owner, $relation);
public static factory ( Hive $owner = NULL, Hive_Relation $relation = NULL ) : Hive_Container
$owner Hive
$relation Hive_Relation
Résultat Hive_Container

offsetSet() public méthode

public offsetSet ( $key, $model )

offsetUnset() public méthode

unset($container['foo']);
public offsetUnset ( $key ) : void
Résultat void

owner() public méthode

public owner ( Hive $owner = NULL )
$owner Hive

relation() public méthode

public relation ( Hive_Relation $relation = NULL )
$relation Hive_Relation

values() public méthode

public values ( array $values = NULL )
$values array

Property Details

$__owner protected_oe property

owner of this container
protected $__owner

$__relation protected_oe property

relationship of the owner to this container
protected $__relation

$__removed protected_oe property

removed models
protected $__removed