PHP 클래스 Hive_Container, hive

저자: Woody Gilk ([email protected])
상속: extends ArrayObject
파일 보기 프로젝트 열기: shadowhand/hive 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$__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