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

Public Member Functions

 readTypeMarker ($typeMarker=null)
 readInteger ()
 readString ()
 readDate ()
 readArray ()
 readObject ()
 readXmlString ()

Protected Attributes

 $_objectCount
 $_referenceObjects = array()
 $_referenceStrings = array()
 $_referenceDefinitions = array()

Detailed Description

Definition at line 40 of file Deserializer.php.


Member Function Documentation

readArray ( )

Read amf array to PHP array

  • array = 0x09 integer-data ( [ 1OCTET *amf3-data ] | [OCTET *amf3-data 1] | [ OCTET *amf-data ] )
Returns:
array

Definition at line 240 of file Deserializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

readDate ( )

Read and deserialize a date

Data is the number of milliseconds elapsed since the epoch of midnight, 1st Jan 1970 in the UTC time zone. Local time zone information is not sent to flash.

  • date = 0x08 integer-data [ number-data ]
Returns:
Zend_Date

Definition at line 213 of file Deserializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Read and deserialize an integer

AMF 3 represents smaller integers with fewer bytes using the most significant bit of each byte. The worst case uses 32-bits to represent a 29-bit number, which is what we would have done with no compression.

  • 0x00000000 - 0x0000007F : 0xxxxxxx
  • 0x00000080 - 0x00003FFF : 1xxxxxxx 0xxxxxxx
  • 0x00004000 - 0x001FFFFF : 1xxxxxxx 1xxxxxxx 0xxxxxxx
  • 0x00200000 - 0x3FFFFFFF : 1xxxxxxx 1xxxxxxx 1xxxxxxx xxxxxxxx
  • 0x40000000 - 0xFFFFFFFF : throw range exception

0x04 -> integer type code, followed by up to 4 bytes of data.

Parsing integers on OSFlash for the AMF3 integer data format: int|float

Definition at line 134 of file Deserializer.php.

Here is the caller graph for this function:

Read an object from the AMF stream and convert it into a PHP object

Todo:
Rather than using an array of traitsInfo create Zend_Amf_Value_TraitsInfo
Returns:
object|array

Definition at line 279 of file Deserializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Read and deserialize a string

Strings can be sent as a reference to a previously occurring String by using an index to the implicit string reference table. Strings are encoding using UTF-8 - however the header may either describe a string literal or a string reference.

  • string = 0x06 string-data
  • string-data = integer-data [ modified-utf-8 ]
  • modified-utf-8 = *OCTET
Returns:
String

Definition at line 176 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 corresponding PHP data type is
Exceptions:
Zend_Amf_Exceptionfor unidentified marker type

Reimplemented from Zend_Amf_Parse_Deserializer.

Definition at line 77 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 414 of file Deserializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$_objectCount [protected]

Definition at line 46 of file Deserializer.php.

$_referenceDefinitions = array() [protected]

Definition at line 64 of file Deserializer.php.

$_referenceObjects = array() [protected]

Definition at line 52 of file Deserializer.php.

$_referenceStrings = array() [protected]

Definition at line 58 of file Deserializer.php.


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