PHP Класс Hive_Container, hive

Автор: Woody Gilk ([email protected])
Наследование: extends ArrayObject
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$__owner owner of this container
$__relation relationship of the owner to this container
$__removed removed models

Открытые методы

Метод Описание
__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 )

Описание методов

__construct() публичный Метод

$containter = new Hive_Container;
public __construct ( array $data = [] ) : void
$data array
Результат void

as_array() публичный Метод

$array = $container->as_array();
public as_array ( ) : array
Результат array

changed() публичный Метод

public changed ( )

factory() публичный статический Метод

$container = Hive_Container::factory($owner, $relation);
public static factory ( Hive $owner = NULL, Hive_Relation $relation = NULL ) : Hive_Container
$owner Hive
$relation Hive_Relation
Результат Hive_Container

offsetSet() публичный Метод

public offsetSet ( $key, $model )

offsetUnset() публичный Метод

unset($container['foo']);
public offsetUnset ( $key ) : void
Результат void

owner() публичный Метод

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

relation() публичный Метод

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

values() публичный Метод

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

Описание свойств

$__owner защищенное свойство

owner of this container
protected $__owner

$__relation защищенное свойство

relationship of the owner to this container
protected $__relation

$__removed защищенное свойство

removed models
protected $__removed