Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Read an AMF0 input stream and convert it into PHP data types

int
$_objectEncoding= 'Zend_Amf_Constants::AMF0_OBJECT_ENCODING'
If AMF3 serialization occurs, update to AMF0 0x03
Zend_Amf_Constants::AMF0_OBJECT_ENCODING
Details
getObjectEncoding(
)
:
int
Return the object encoding to check if an AMF3 object is going to be return.
Type | Description |
---|---|
int |

readAmf3TypeMarker(
)
:
string
AMF3 data type encountered load AMF3 Deserializer to handle type markers.
Type | Description |
---|---|
string |

readArray(
)
:
array
Converts numerically indexed actiosncript arrays into php arrays.
Called when marker type is 10
Type | Description |
---|---|
array |

readMixedArray(
)
:
array
Reads an array with numeric and string indexes.
Called when marker type is 8
Type | Description |
---|---|
array |

readObject(
array|null $object
=
null
)
:
object
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.
Name | Type | Description |
---|---|---|
$object | array|null |
Type | Description |
---|---|
object |

readReference(
)
:
object
Read reference objects
Used to gain access to the private array of reference objects. Called when marker type is 7.
Type | Description |
---|---|
object |
Exception | Description |
---|---|
\Zend_Amf_Exception | for invalid reference keys |

readTypeMarker(
integer $typeMarker
=
null
)
:
mixed
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.
Name | Type | Description |
---|---|---|
$typeMarker | integer |
Type | Description |
---|---|
mixed | whatever the data type is of the marker in php |
Exception | Description |
---|---|
\Zend_Amf_Exception | for invalid type |

readTypedObject(
)
:
object|array
Read Class that is to be mapped to a server class.
Commonly used for Value Objects on the server
Type | Description |
---|---|
object|array |
Exception | Description |
---|---|
\Zend_Amf_Exception | if unable to load type |