Class Amfphp_Core_Amf_Util

Description

utils for Amf handling

  • author: Ariel Sommeria-klein

Located in /Amfphp/Core/Amf/Util.php (line 19)


	
			
Method Summary
static mixed applyFunctionToContainedObjects (mixed $obj, array $callBack, [int $recursionDepth = 0], [ $maxRecursionDepth = 30], [bool $ignoreAmfTypes = true], int $maxRecursionDepth.)
static isSystemBigEndian ()
static bool is_byteArray ($obj $obj)
static bool is_date ($obj $obj)
static bool is_undefined ($obj $obj)
static bool is_Xml ($obj $obj)
static bool is_XmlDocument ($obj $obj)
Methods
static method applyFunctionToContainedObjects (line 40)

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

  • return: array or object, depending on type of $obj
  • access: public
static mixed applyFunctionToContainedObjects (mixed $obj, array $callBack, [int $recursionDepth = 0], [ $maxRecursionDepth = 30], [bool $ignoreAmfTypes = true], int $maxRecursionDepth.)
  • 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
  • int $recursionDepth: current recursion depth. The first call should be made with this set 0. default is 0
  • int $maxRecursionDepth.: default is 30
  • bool $ignoreAmfTypes: ignore objects with type in Amfphp_Core_Amf_Types package. could maybe be replaced by a regexp, but this is better for performance
  • $maxRecursionDepth
static method isSystemBigEndian (line 25)

looks if the system is Big Endain or not

  • access: public
static isSystemBigEndian ()
static method is_byteArray (line 95)

Determines whether an object is the ActionScript type 'ByteArray'

  • access: public
static bool is_byteArray ($obj $obj)
  • $obj $obj
static method is_date (line 106)

Determines whether an object is the ActionScript type 'Date'

  • access: public
static bool is_date ($obj $obj)
  • $obj $obj
static method is_undefined (line 84)

Determines whether an object is the ActionScript type 'undefined'

  • access: public
static bool is_undefined ($obj $obj)
  • $obj $obj
static method is_Xml (line 117)

Determines whether an object is the ActionScript type 'XML'

  • access: public
static bool is_Xml ($obj $obj)
  • $obj $obj
static method is_XmlDocument (line 127)

Determines whether an object is the ActionScript type 'XmlDoument'

  • access: public
static bool is_XmlDocument ($obj $obj)
  • $obj $obj

Documentation generated on Mon, 23 Jan 2012 17:22:07 -0300 by phpDocumentor 1.4.3