\Zend_Amf_Parse_Amf0_Serializer

Serializer php misc types back to there corresponding AMF0 Type Marker.

Summary

Methods
Properties
Constants
__construct()
writeTypeMarker()
writeObject()
writeArray()
writeDate()
writeTypedObject()
writeAmf3TypeMarker()
No public properties found
No constants found
writeObjectReference()
getClassName()
$_stream
$_className
$_referenceObjects
N/A
No private methods found
No private properties found
N/A

Properties

$_stream

$_stream : string

Refrence to the current output stream being constructed

Type

string

$_className

$_className : string

Type

string — Name of the class to be returned

$_referenceObjects

$_referenceObjects : array

An array of reference objects

Type

array

Methods

writeTypeMarker()

writeTypeMarker(\misc  $data, \misc  $markerType = null) : \Zend_Amf_Parse_Amf0_Serializer

Determine type and serialize accordingly

Checks to see if the type was declared and then either auto negotiates the type or relies on the user defined markerType to serialize the data into amf

Parameters

\misc $data
\misc $markerType

Throws

\Zend_Amf_Exception

for unrecognized types or data

Returns

\Zend_Amf_Parse_Amf0_Serializer

writeObject()

writeObject(  $object) : \Zend_Amf_Parse_Amf0_Serializer

Write a php array with string or mixed keys.

Parameters

$object

Returns

\Zend_Amf_Parse_Amf0_Serializer

writeArray()

writeArray(array  $array) : \Zend_Amf_Parse_Amf0_Serializer

Write a standard numeric array to the output stream. If a mixed array is encountered call writeTypeMarker with mixed array.

Parameters

array $array

Returns

\Zend_Amf_Parse_Amf0_Serializer

writeTypedObject()

writeTypedObject(object  $data) : \Zend_Amf_Parse_Amf0_Serializer

Write a class mapped object to the output stream.

Parameters

object $data

Returns

\Zend_Amf_Parse_Amf0_Serializer

writeAmf3TypeMarker()

writeAmf3TypeMarker(string  $data) : \Zend_Amf_Parse_Amf0_Serializer

Encountered and AMF3 Type Marker use AMF3 serializer. Once AMF3 is enountered it will not return to AMf0.

Parameters

string $data

Returns

\Zend_Amf_Parse_Amf0_Serializer

writeObjectReference()

writeObjectReference(mixed  $object,   $markerType) : Boolean

Check if the given object is in the reference table, write the reference if it exists, otherwise add the object to the reference table

Parameters

mixed $object

object to check for reference

$markerType

AMF type of the object to write

Returns

Boolean —

true, if the reference was written, false otherwise

getClassName()

getClassName(object  $object) : false|string

Find if the class name is a class mapped name and return the respective classname if it is.

Parameters

object $object

Returns

false|string —

$className