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.
Detect PHP object type and convert it to a corresponding AMF3 object type
array $_referenceDefinitions = 'array'An array of reference class definitions, indexed by classname
Detailsarray $_referenceObjects = 'array'An array of reference objects per amf body
Detailsarray $_referenceStrings = 'array'An array of reference strings per amf body
Detailsstring $_strEmpty = ''A constant empty string
DetailswriteArray(
array $array
)
:
Zend_Amf_Parse_Amf3_SerializerWrite a PHP array back to the amf output stream
DetailswriteBinaryString(
string $string
)
:
Zend_Amf_Parse_Amf3_SerializerSend string to output stream, without trying to reference it.
The string is prepended with strlen($string) << 1 | 0x01
DetailswriteByteArray(
string|Zend_Amf_Value_ByteArray $data
)
:
Zend_Amf_Parse_Amf3_SerializerSend ByteArray to output stream
DetailswriteDate(
DateTime|Zend_Date $date
)
:
Zend_Amf_Parse_Amf3_SerializerConvert DateTime/Zend_Date to AMF date
DetailswriteInteger(
$int
)
:
Zend_Amf_Parse_Amf3_SerializerWrite an AMF3 integer
DetailswriteObject(
$object
)
:
Zend_Amf_Parse_Amf3_SerializerWrite object to ouput stream
DetailswriteObjectReference(
mixed $object, mixed $objectByVal
=
false
)
:
BooleanCheck if the given object is in the reference table, write the reference if it exists, otherwise add the object to the reference table
DetailswriteString(
string $string
)
:
Zend_Amf_Parse_Amf3_SerializerSend string to output stream
DetailswriteTypeMarker(
mixed $data, int $markerType
=
null, mixed $dataByVal
=
false
)
:
voidSerialize 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
DetailswriteXml(
DOMDocument|SimpleXMLElement $xml
)
:
Zend_Amf_Parse_Amf3_SerializerSend xml to output stream
Details