PHP Class Phrozn\Registry\Container

Author: Victor Farazdagi
Inheritance: implements Serializable, implements ArrayAccess, implements Phrozn\Registry\Has\Dao, implements Phrozn\Registry\Has\Values
Show file Open project: farazdagi/phrozn Class Usage Examples

Protected Properties

Property Type Description
$values array Registry values

Public Methods

Method Description
__construct ( Phrozn\Registry\Dao $dao = null ) : void Initialize container
get ( string $name ) : mixed Get property value
getDao ( ) : Phrozn\Has\Dao Get DAO.
getValues ( ) : Phrozn\Has\Values Get values attribute.
init ( ) : void Initialize container
offsetExists ( mixed $offset ) : boolean ArrayAccess method - check whether offset exists
offsetGet ( mixed $offset ) : mixed ArrayAccess method - get offset value
offsetSet ( mixed $offset, $value ) : void ArrayAccess method - set the offset value
offsetUnset ( mixed $offset ) : void ArrayAccess method - reset value at offset
read ( ) : Container (Re)read current container from DAO
remove ( string $name ) : void Unset property
save ( ) : Container Persist current instance
serialize ( ) : string Serialize container
set ( string $name, mixed $value ) : Container Set property value
setDao ( Phrozn\Registry\Dao $dao ) : Phrozn\Has\Dao Set DAO.
setValues ( array $values ) : Phrozn\Has\Values Set values attribute.
unserialize ( string $serialized ) : array Unserialize container

Method Details

__construct() public method

Initialize container
public __construct ( Phrozn\Registry\Dao $dao = null ) : void
$dao Phrozn\Registry\Dao Data access object
return void

get() public method

Get property value
public get ( string $name ) : mixed
$name string Property name
return mixed

getDao() public method

Get DAO.
public getDao ( ) : Phrozn\Has\Dao
return Phrozn\Has\Dao

getValues() public method

Get values attribute.
public getValues ( ) : Phrozn\Has\Values
return Phrozn\Has\Values

init() public method

Initialize container
public init ( ) : void
return void

offsetExists() public method

ArrayAccess method - check whether offset exists
public offsetExists ( mixed $offset ) : boolean
$offset mixed Offset to check
return boolean

offsetGet() public method

ArrayAccess method - get offset value
public offsetGet ( mixed $offset ) : mixed
$offset mixed Offset to check
return mixed

offsetSet() public method

ArrayAccess method - set the offset value
public offsetSet ( mixed $offset, $value ) : void
$offset mixed Offset to check
return void

offsetUnset() public method

ArrayAccess method - reset value at offset
public offsetUnset ( mixed $offset ) : void
$offset mixed Offset to check
return void

read() public method

(Re)read current container from DAO
public read ( ) : Container
return Container

remove() public method

Unset property
public remove ( string $name ) : void
$name string Member name
return void

save() public method

Persist current instance
public save ( ) : Container
return Container

serialize() public method

Serialize container
public serialize ( ) : string
return string

set() public method

Set property value
public set ( string $name, mixed $value ) : Container
$name string Property name
$value mixed Property value
return Container

setDao() public method

Set DAO.
public setDao ( Phrozn\Registry\Dao $dao ) : Phrozn\Has\Dao
$dao Phrozn\Registry\Dao Data access object
return Phrozn\Has\Dao

setValues() public method

Set values attribute.
public setValues ( array $values ) : Phrozn\Has\Values
$values array Values attribute
return Phrozn\Has\Values

unserialize() public method

Unserialize container
public unserialize ( string $serialized ) : array
$serialized string Serialized data
return array

Property Details

$values protected property

Registry values
protected array $values
return array