Trait - XPSPL\Storage

Storage trait.

The Storage trait is designed to allow objects to act as a storage, the trait only 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 this trait.

Methods

storage

storage()

Returns the current storage array.

Return type:array

merge

merge()

Merge an array with the current storage.

Return type:void

walk

walk()

Apply the given function to every node in storage.

Parameters:callable
Return type:void

count

count()

Procedures.

current

current()

end

end()

key

key()

reset

reset()

valid

valid()

sort

sort()

usort

usort()

uasort

uasort()

Last updated on 02/01/13 07:27am

Project Versions

Table Of Contents

Previous topic

Trait - XPSPL\State

Next topic

Function - milliseconds

This Page