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.
Serializer PHP misc types back to there corresponding AMF0 Type Marker.
string $_className = ''
Detailsarray $_referenceObjects = 'array'An array of reference objects
DetailsgetClassName(
object $object
)
:
false|stringFind if the class name is a class mapped name and return the respective classname if it is.
DetailswriteAmf3TypeMarker(
string $data
)
:
Zend_Amf_Parse_Amf0_SerializerEncountered and AMF3 Type Marker use AMF3 serializer. Once AMF3 is encountered it will not return to AMf0.
DetailswriteArray(
array $array
)
:
Zend_Amf_Parse_Amf0_SerializerWrite a standard numeric array to the output stream. If a mixed array is encountered call writeTypeMarker with mixed array.
DetailswriteDate(
DateTime|Zend_Date $data
)
:
Zend_Amf_Parse_Amf0_SerializerConvert the DateTime into an AMF Date
DetailswriteObject(
$object
)
:
Zend_Amf_Parse_Amf0_SerializerWrite a PHP array with string or mixed keys.
DetailswriteObjectReference(
mixed $object, $markerType $markerType, 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
DetailswriteTypeMarker(
mixed $data, mixed $markerType
=
null, mixed $dataByVal
=
false
)
:
Zend_Amf_Parse_Amf0_SerializerDetermine 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
DetailswriteTypedObject(
object $data
)
:
Zend_Amf_Parse_Amf0_SerializerWrite a class mapped object to the output stream.
Details