utils for Amf handling
package | Amfphp_Core_Amf |
---|---|
author | Ariel Sommeria-klein |
applyFunctionToContainedObjects(mixed $obj, array $callBack, int $recursionDepth, int $maxRecursionDepth, bool $ignoreAmfTypes) : mixed
iterates on $obj and its sub objects, which can iether be arrays or objects
mixed
the object/array that will be iterated on
array
the function to apply to obj and subobjs. must take 1 parameter, and return the modified object
int
current recursion depth. The first call should be made with this set 0. default is 0
int
default is 30
bool
ignore objects with type in Amfphp_Core_Amf_Types package. could maybe be replaced by a regexp, but this is better for performance
mixed
array or object, depending on type of $objisSystemBigEndian() : \<Boolean>
\<Boolean>
is_Xml($obj) : bool
static |
---|
bool
is_XmlDocument($obj) : bool
static |
---|
bool
is_byteArray($obj) : bool
static |
---|
bool
is_date($obj) : bool
static |
---|
bool
is_undefined($obj) : bool
static |
---|
bool