Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Amf_Parse_Amf0_Deserializer Class Reference

Public Member Functions

 readTypeMarker ($typeMarker=null)
 Read AMF markers and dispatch for deserialization.
 
 readObject ($object=null)
 Read AMF objects and convert to PHP objects.
 
 readReference ()
 Read reference objects.
 
 readMixedArray ()
 Reads an array with numeric and string indexes.
 
 readArray ()
 Converts numerically indexed actiosncript arrays into php arrays.
 
 readDate ()
 Convert AS Date to Zend_Date.
 
 readXmlString ()
 Convert XML to SimpleXml If user wants DomDocument they can use dom_import_simplexml.
 
 readTypedObject ()
 Read Class that is to be mapped to a server class.
 
 readAmf3TypeMarker ()
 AMF3 data type encountered load AMF3 Deserializer to handle type markers.
 
 getObjectEncoding ()
 Return the object encoding to check if an AMF3 object is going to be return.
 
- Public Member Functions inherited from Zend_Amf_Parse_Deserializer
 __construct (Zend_Amf_Parse_InputStream $stream)
 Constructor.
 
 readTypeMarker ($markerType=null)
 Checks for AMF marker types and calls the appropriate methods for deserializing those marker types.
 

Protected Attributes

 $_reference = array()
 
 $_objectEncoding = Zend_Amf_Constants::AMF0_OBJECT_ENCODING
 
- Protected Attributes inherited from Zend_Amf_Parse_Deserializer
 $_stream
 

Member Function Documentation

getObjectEncoding ( )

Return the object encoding to check if an AMF3 object is going to be return.

Returns
int
readAmf3TypeMarker ( )

AMF3 data type encountered load AMF3 Deserializer to handle type markers.

Returns
string
readArray ( )

Converts numerically indexed actiosncript arrays into php arrays.

Called when marker type is 10

Returns
array
readDate ( )

Convert AS Date to Zend_Date.

Returns
Zend_Date
readMixedArray ( )

Reads an array with numeric and string indexes.

Called when marker type is 8

Todo:
As of Flash Player 9 there is not support for mixed typed arrays so we handle this as an object. With the introduction of vectors in Flash Player 10 this may need to be reconsidered.
Returns
array
readObject (   $object = null)

Read AMF objects and convert to PHP objects.

Read the name value pair objects form the php message and convert them to a php object class.

Called when the marker type is 3.

Parameters
array | null$object
Returns
object
readReference ( )

Read reference objects.

Used to gain access to the private array of reference objects. Called when marker type is 7.

Returns
object
Exceptions
Zend_Amf_Exceptionfor invalid reference keys
readTypedObject ( )

Read Class that is to be mapped to a server class.

Commonly used for Value Objects on the server

Todo:
implement Typed Class mapping
Returns
object|array
Exceptions
Zend_Amf_Exceptionif unable to load type
readTypeMarker (   $typeMarker = null)

Read AMF markers and dispatch for deserialization.

Checks for AMF marker types and calls the appropriate methods for deserializing those marker types. Markers are the data type of the following value.

Parameters
integer$typeMarker
Returns
mixed whatever the data type is of the marker in php
Exceptions
Zend_Amf_Exceptionfor invalid type
readXmlString ( )

Convert XML to SimpleXml If user wants DomDocument they can use dom_import_simplexml.

Returns
SimpleXml Object

Member Data Documentation

$_objectEncoding = Zend_Amf_Constants::AMF0_OBJECT_ENCODING
protected
$_reference = array()
protected