\Amfphp_Core_Amf_Util

utils for Amf handling

Summary

Methods
Properties
Constants
isSystemBigEndian()
applyFunctionToContainedObjects()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

isSystemBigEndian()

isSystemBigEndian() : \<Boolean>

looks if the system is Big Endain or not

Returns

\

applyFunctionToContainedObjects()

applyFunctionToContainedObjects(mixed $obj, array $callBack, integer $recursionDepth, integer $maxRecursionDepth, boolean $ignoreAmfTypes) : mixed

applies a function to all objects contained by $obj and $obj itself.

iterates on $obj and its sub objects, which can iether be arrays or objects

Parameters

mixed $obj

the object/array that will be iterated on

array $callBack

the function to apply to obj and subobjs. must take 1 parameter, and return the modified object

integer $recursionDepth

current recursion depth. The first call should be made with this set 0. default is 0

integer $maxRecursionDepth

default is 30

boolean $ignoreAmfTypes

ignore objects with type in Amfphp_Core_Amf_Types package. could maybe be replaced by a regexp, but this is better for performance

Returns

mixed —

array or object, depending on type of $obj