\Zend_Amf_Parse_Amf0_Deserializer
Read an AMF0 input stream and convert it into PHP data types
- Copyright: Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Amf_Parse_Amf0_Deserializer
extends Zend_Amf_Parse_Deserializer
{
- // members
- protected array $_reference = ;
- protected int $_objectEncoding = Zend_Amf_Constants::AMF0_OBJECT_ENCODING;
- // Inherited members from Zend_Amf_Parse_Deserializer
- protected Zend_Amf_Parse_InputStream $_stream;
- // methods
- public mixed readTypeMarker()
- public readObject()
- public readReference()
- public array readMixedArray()
- public array readArray()
- public Zend_Date readDate()
- public SimpleXml readXmlString()
- public object|array readTypedObject()
- public string readAmf3TypeMarker()
- public int getObjectEncoding()
- // Inherited methods from Zend_Amf_Parse_Deserializer
- public void __construct()
- public abstract mixed readTypeMarker()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
39+ | Implement Typed Object Class Mapping |
39+ | Class could be implemented as Factory Class with each data type it's own class |
199+ | 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. |
263+ | implement Typed Class mapping |
Members
protected
- $_objectEncoding
—
int
If AMF3 serialization occurs, update to AMF0 0x03 - $_reference
—
array
An array of objects used for recursively deserializing an object. - $_stream
—
Zend_Amf_Parse_InputStream
The raw string that represents the AMF request.
Methods
public
- getObjectEncoding() — Return the object encoding to check if an AMF3 object is going to be return.
- readAmf3TypeMarker() — AMF3 data type encountered load AMF3 Deserializer to handle type markers.
- readArray() — Converts numerically indexed actiosncript arrays into php arrays.
- readDate() — Convert AS Date to Zend_Date
- readMixedArray() — Reads an array with numeric and string indexes.
- readObject() — Read AMF objects and convert to PHP objects
- readReference() — Read reference objects
- readTypeMarker() — Read AMF markers and dispatch for deserialization
- readTypedObject() — Read Class that is to be mapped to a server class.
- readXmlString() — Convert XML to SimpleXml If user wants DomDocument they can use dom_import_simplexml
Inherited from Zend_Amf_Parse_Deserializer
public
- 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.