$_stream
$_stream : string
Refrence to the current output stream being constructed
Detect PHP object type and convert it to a corresponding AMF3 object type
__construct(\Zend_Amf_Parse_OutputStream $stream) : void
Constructor
\Zend_Amf_Parse_OutputStream | $stream |
writeTypeMarker( $data, integer $markerType = null) : void
Serialize PHP types to AMF3 and write to stream
Checks to see if the type was declared and then either auto negotiates the type or use the user defined markerType to serialize the data from php back to AMF3
$data | ||
integer | $markerType |
writeInteger( $int) : \Zend_Amf_Parse_Amf3_Serializer
Write an AMF3 integer
$int |
writeString(string $string) : \Zend_Amf_Parse_Amf3_Serializer
Send string to output stream
string | $string |
writeByteArray(string|\Zend_Amf_Value_ByteArray $data) : \Zend_Amf_Parse_Amf3_Serializer
Send ByteArray to output stream
string|\Zend_Amf_Value_ByteArray | $data |
writeXml(\DOMDocument|\SimpleXMLElement $xml) : \Zend_Amf_Parse_Amf3_Serializer
Send xml to output stream
\DOMDocument|\SimpleXMLElement | $xml |
writeDate(\DateTime|\Zend_Date $date) : \Zend_Amf_Parse_Amf3_Serializer
Convert DateTime/Zend_Date to AMF date
\DateTime|\Zend_Date | $date |
writeArray(array $array) : \Zend_Amf_Parse_Amf3_Serializer
Write a PHP array back to the amf output stream
array | $array |
writeObject( $object) : \Zend_Amf_Parse_Amf3_Serializer
Write object to ouput stream
$object |
writeBinaryString(string $string) : \Zend_Amf_Parse_Amf3_Serializer
Send string to output stream, without trying to reference it.
The string is prepended with strlen($string) << 1 | 0x01
string | $string |
writeObjectReference(mixed $object) : 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 |
true, if the reference was written, false otherwise