Moodle  2.2.1
http://www.collinsharper.com
Zend_Amf_Parse_Amf0_Deserializer Class Reference
Inheritance diagram for Zend_Amf_Parse_Amf0_Deserializer:
Collaboration diagram for Zend_Amf_Parse_Amf0_Deserializer:

Public Member Functions

 readTypeMarker ($typeMarker=null)
 readObject ($object=null)
 readReference ()
 readMixedArray ()
 readArray ()
 readDate ()
 readXmlString ()
 readTypedObject ()
 readAmf3TypeMarker ()
 getObjectEncoding ()

Protected Attributes

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

Detailed Description

Definition at line 39 of file Deserializer.php.


Member Function Documentation

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

Returns:
int

Definition at line 302 of file Deserializer.php.

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

Returns:
string

Definition at line 288 of file Deserializer.php.

Here is the caller graph for this function:

readArray ( )

Converts numerically indexed actiosncript arrays into php arrays.

Called when marker type is 10

Returns:
array

Definition at line 212 of file Deserializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

readDate ( )

Convert AS Date to Zend_Date

Returns:
Zend_Date

Definition at line 227 of file Deserializer.php.

Here is the caller graph for this function:

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

Definition at line 199 of file Deserializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 149 of file Deserializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 179 of file Deserializer.php.

Here is the caller graph for this function:

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

Definition at line 263 of file Deserializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented from Zend_Amf_Parse_Deserializer.

Definition at line 65 of file Deserializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Returns:
SimpleXml Object

Definition at line 248 of file Deserializer.php.

Here is the caller graph for this function:


Field Documentation

$_objectEncoding = Zend_Amf_Constants::AMF0_OBJECT_ENCODING [protected]

Definition at line 52 of file Deserializer.php.

$_reference = array() [protected]

Definition at line 45 of file Deserializer.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations