\Zend_Amf_Parse_Amf3_Deserializer
Read an AMF3 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_Amf3_Deserializer
extends Zend_Amf_Parse_Deserializer
{
- // members
- protected $_objectCount;
- protected array $_referenceObjects = ;
- protected array $_referenceStrings = ;
- protected array $_referenceDefinitions = ;
- // Inherited members from Zend_Amf_Parse_Deserializer
- protected Zend_Amf_Parse_InputStream $_stream;
- // methods
- public mixed readTypeMarker()
- public int|float readInteger()
- public String readString()
- public Zend_Date readDate()
- public array readArray()
- public object|array readObject()
- public SimpleXml readXmlString()
- // Inherited methods from Zend_Amf_Parse_Deserializer
- public void __construct()
- public abstract mixed readTypeMarker()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
40+ | readObject to handle Typed Objects |
40+ | readXMLStrimg to be implemented. |
40+ | Class could be implemented as Factory Class with each data type it's own class. |
279+ | Rather than using an array of traitsInfo create Zend_Amf_Value_TraitsInfo |
Members
protected
- $_objectCount
—
int
Total number of objects in the referenceObject array - $_referenceDefinitions
—
array
An array of reference class definitions per body - $_referenceObjects
—
array
An array of reference objects per amf body - $_referenceStrings
—
array
An array of reference strings per amf body - $_stream
—
Zend_Amf_Parse_InputStream
The raw string that represents the AMF request.
Methods
public
- readArray() — Read amf array to PHP array
- readDate() — Read and deserialize a date
- readInteger() — Read and deserialize an integer
- readObject() — Read an object from the AMF stream and convert it into a PHP object
- readString() — Read and deserialize a string
- readTypeMarker() — Read AMF markers and dispatch for deserialization
- 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.