Class Zend_Amf_Parse_Amf0_Deserializer

Description

Read an AMF0 input stream and convert it into PHP data types

  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • todo: Implement Typed Object Class Mapping
  • todo: Class could be implemented as Factory Class with each data type it's own class
  • license: New BSD License

Located in /Amf/Parse/Amf0/Deserializer.php (line 39)

Zend_Amf_Parse_Deserializer
   |
   --Zend_Amf_Parse_Amf0_Deserializer
Variable Summary
Method Summary
 string readAmf3TypeMarker ()
 array readArray ()
 array readMixedArray ()
 object readObject ([array|null $object = null])
 object readReference ()
 object|array readTypedObject ()
 mixed readTypeMarker ([integer $typeMarker = null])
 SimpleXml readXmlString ()
Variables
int $_objectEncoding = Zend_Amf_Constants::AMF0_OBJECT_ENCODING (line 52)

If AMF3 serialization occurs, update to AMF0 0x03

  • access: protected
array $_reference = array() (line 45)

An array of objects used for recursively deserializing an object.

  • access: protected

Inherited Variables

Inherited from Zend_Amf_Parse_Deserializer

Zend_Amf_Parse_Deserializer::$_stream
Methods
getObjectEncoding (line 302)

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

  • access: public
int getObjectEncoding ()
readAmf3TypeMarker (line 288)

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

  • access: public
string readAmf3TypeMarker ()
readArray (line 212)

Converts numerically indexed actiosncript arrays into php arrays.

Called when marker type is 10

  • access: public
array readArray ()
readDate (line 227)

Convert AS Date to Zend_Date

  • access: public
Zend_Date readDate ()
readMixedArray (line 199)

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.
  • access: public
array readMixedArray ()
readObject (line 149)

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.

  • access: public
object readObject ([array|null $object = null])
  • array|null $object
readReference (line 179)

Read reference objects

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

  • throws: Zend_Amf_Exception for invalid reference keys
  • access: public
object readReference ()
readTypedObject (line 263)

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

Commonly used for Value Objects on the server

  • todo: implement Typed Class mapping
  • throws: Zend_Amf_Exception if unable to load type
  • access: public
object|array readTypedObject ()
readTypeMarker (line 65)

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.

  • return: whatever the data type is of the marker in php
  • throws: Zend_Amf_Exception for invalid type
  • access: public
mixed readTypeMarker ([integer $typeMarker = null])
  • integer $typeMarker

Redefinition of:
Zend_Amf_Parse_Deserializer::readTypeMarker()
Checks for AMF marker types and calls the appropriate methods for deserializing those marker types. Markers are the data type of the following value.
readXmlString (line 248)

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

  • return: Object
  • access: public
SimpleXml readXmlString ()

Inherited Methods

Inherited From Zend_Amf_Parse_Deserializer

 Zend_Amf_Parse_Deserializer::__construct()
 Zend_Amf_Parse_Deserializer::readTypeMarker()

Documentation generated on Mon, 21 Jun 2010 15:16:46 -0400 by phpDocumentor 1.4.3