PHP Class XPSPL\Storage

Storage is designed to allow objects to act as a storage. Storage provides an interface to the normal PHP functions used for transversing an array, keeping all data within a central storage. See the PHP Manual for more information regarding the functions used in Storage.
Inheritance: implements ArrayAccess, implements Iterator
Show file Open project: prggmr/xpspl

Protected Properties

Property Type Description
$_storage array The data storage.

Public Methods

Method Description
count ( ) Procedures.
current ( )
end ( )
free ( ) Frees the storage.
get_storage ( ) : array Returns the current storage array.
key ( )
merge ( $array ) : void Merge an array with the current storage.
next ( )
offsetExists ( $offset )
offsetGet ( $offset )
offsetSet ( $offset, $value )
offsetUnset ( $offset )
prev ( )
reset ( )
rewind ( )
valid ( )
walk ( callable $func ) : void Apply the given function to every node in storage.

Method Details

count() public method

Method declares for interfaces ArrayAccess and Iterator.
public count ( )

current() public method

public current ( )

end() public method

public end ( )

free() public method

Frees the storage.
public free ( )

get_storage() public method

Returns the current storage array.
public get_storage ( ) : array
return array

key() public method

public key ( )

merge() public method

Merge an array with the current storage.
public merge ( $array ) : void
return void

next() public method

public next ( )

offsetExists() public method

public offsetExists ( $offset )

offsetGet() public method

public offsetGet ( $offset )

offsetSet() public method

public offsetSet ( $offset, $value )

offsetUnset() public method

public offsetUnset ( $offset )

prev() public method

public prev ( )

reset() public method

public reset ( )

rewind() public method

public rewind ( )

valid() public method

public valid ( )

walk() public method

Apply the given function to every node in storage.
public walk ( callable $func ) : void
$func callable
return void

Property Details

$_storage protected property

The data storage.
protected array $_storage
return array