utils for Amf handling

package Amfphp_Core_Amf
author Ariel Sommeria-klein

 Methods

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

applyFunctionToContainedObjects(mixed $obj, array $callBack, int $recursionDepth, int $maxRecursionDepth, bool $ignoreAmfTypes) : mixed
Static

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

Parameters

$obj

mixed

the object/array that will be iterated on

$callBack

array

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

$recursionDepth

int

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

$maxRecursionDepth

int

default is 30

$ignoreAmfTypes

bool

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

Returns

mixedarray or object, depending on type of $obj

looks if the system is Big Endain or not

isSystemBigEndian() : \<Boolean>
Static

Returns

\<Boolean>

Determines whether an object is the ActionScript type 'XML'

is_Xml($obj) : bool
Static
static

Parameters

$obj

Returns

bool

Determines whether an object is the ActionScript type 'XmlDoument'

is_XmlDocument($obj) : bool
Static
static

Parameters

$obj

Returns

bool

Determines whether an object is the ActionScript type 'ByteArray'

is_byteArray($obj) : bool
Static
static

Parameters

$obj

Returns

bool

Determines whether an object is the ActionScript type 'Date'

is_date($obj) : bool
Static
static

Parameters

$obj

Returns

bool

Determines whether an object is the ActionScript type 'undefined'

is_undefined($obj) : bool
Static
static

Parameters

$obj

Returns

bool