$_stream
$_stream : string
Refrence to the current output stream being constructed
Serializer php misc types back to there corresponding AMF0 Type Marker.
__construct(\Zend_Amf_Parse_OutputStream $stream) : void
Constructor
\Zend_Amf_Parse_OutputStream | $stream |
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
\misc | $data | |
\misc | $markerType |
for unrecognized types or data
writeObject( $object) : \Zend_Amf_Parse_Amf0_Serializer
Write a php array with string or mixed keys.
$object |
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.
array | $array |
writeDate(\DateTime|\Zend_Date $data) : \Zend_Amf_Parse_Amf0_Serializer
Convert the DateTime into an AMF Date
\DateTime|\Zend_Date | $data |
writeTypedObject(object $data) : \Zend_Amf_Parse_Amf0_Serializer
Write a class mapped object to the output stream.
object | $data |
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.
string | $data |
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
mixed | $object | object to check for reference |
$markerType | AMF type of the object to write |
true, if the reference was written, false otherwise