Inheritances
Files
Overview
FRAMES
NO FRAMES

Class Zend_Amf_Parse_Amf0_Serializer

Zend_Amf_Parse_Serializer
|
Zend_Amf_Parse_Amf0_Serializer
Zend_Amf
|-Zend_Amf_Parse_Amf0
|- class Zend_Amf_Parse_Amf0_Serializer extends Zend_Amf_Parse_Serializer
Serializer php misc types back to there corresponding AMF0 Type Marker.
UsesZend_Amf_Parse_Serializer
PackageZend_Amf
SubpackageParse_Amf0
CopyrightCopyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
Licensehttp://framework.zend.com/license/new-bsd New BSD License

Summary

Instance fields
# $_className
# $_referenceObjects An array of reference objects
Instance methods
# getClassName() Find if the class name is a class mapped name and return the
+ writeAmf3TypeMarker() Encountered and AMF3 Type Marker use AMF3 serializer
+ writeArray() Write a standard numeric array to the output stream
+ writeDate() Convert the DateTime into an AMF Date
+ writeObject() Write a php array with string or mixed keys
# writeObjectReference() Check if the given object is in the reference table, write the reference if it exists,
+ writeTypeMarker() Determine type and serialize accordingly
+ writeTypedObject() Write a class mapped object to the output stream

Details

Instance fields

$_className
protected $_className = ''
Var string Name of the class to be returned
$_referenceObjects
protected $_referenceObjects = array()
An array of reference objects
Var array

Instance methods

getClassName()
protected function getClassName( $object)
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
writeAmf3TypeMarker()
public function writeAmf3TypeMarker( $data)
Encountered and AMF3 Type Marker use AMF3 serializer. Once AMF3 is
enountered it will not return to AMf0.
Parameters
string $data
writeArray()
public function writeArray( $array)
Write a standard numeric array to the output stream. If a mixed array
is encountered call writeTypeMarker with mixed array.
Parameters
array $array
writeDate()
public function writeDate( $data)
Convert the DateTime into an AMF Date
Parameters
DateTime|Zend_Date $data
writeObject()
public function writeObject( $object)
Write a php array with string or mixed keys.
Parameters
$object
writeObjectReference()
protected function writeObjectReference( $object
$markerType
)
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
writeTypeMarker()
public function writeTypeMarker( $data
$markerType = null
)
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
writeTypedObject()
public function writeTypedObject( $data)
Write a class mapped object to the output stream.
Parameters
object $data