Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Amf_Parse_Amf0_Serializer Class Reference

Public Member Functions

 writeTypeMarker (&$data, $markerType=null, $dataByVal=false)
 Determine type and serialize accordingly.
 
 writeObject ($object)
 Write a PHP array with string or mixed keys.
 
 writeArray (&$array)
 Write a standard numeric array to the output stream.
 
 writeDate ($data)
 Convert the DateTime into an AMF Date.
 
 writeTypedObject ($data)
 Write a class mapped object to the output stream.
 
 writeAmf3TypeMarker (&$data)
 Encountered and AMF3 Type Marker use AMF3 serializer.
 
- Public Member Functions inherited from Zend_Amf_Parse_Serializer
 __construct (Zend_Amf_Parse_OutputStream $stream)
 Constructor.
 
 writeTypeMarker (&$content, $markerType=null, $contentByVal=false)
 Find the PHP object type and convert it into an AMF object type.
 

Protected Member Functions

 writeObjectReference (&$object, $markerType, $objectByVal=false)
 Check if the given object is in the reference table, write the reference if it exists, otherwise add the object to the reference table.
 
 getClassName ($object)
 Find if the class name is a class mapped name and return the respective classname if it is.
 

Protected Attributes

 $_className = ''
 
 $_referenceObjects = array()
 
- Protected Attributes inherited from Zend_Amf_Parse_Serializer
 $_stream
 
 $mbStringFunctionsOverloaded
 

Member Function Documentation

getClassName (   $object)
protected

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 ( $data)

Encountered and AMF3 Type Marker use AMF3 serializer.

Once AMF3 is encountered it will not return to AMf0.

Parameters
string$data
Returns
Zend_Amf_Parse_Amf0_Serializer
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
Returns
Zend_Amf_Parse_Amf0_Serializer
writeDate (   $data)

Convert the DateTime into an AMF Date.

Parameters
DateTime | Zend_Date$data
Returns
Zend_Amf_Parse_Amf0_Serializer
writeObject (   $object)

Write a PHP array with string or mixed keys.

Parameters
object$data
Returns
Zend_Amf_Parse_Amf0_Serializer
writeObjectReference ( $object,
  $markerType,
  $objectByVal = false 
)
protected

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$objectobject reference to check for reference
string$markerTypeAMF type of the object to write
mixed$objectByValobject to check for reference
Returns
Boolean true, if the reference was written, false otherwise
writeTypedObject (   $data)

Write a class mapped object to the output stream.

Parameters
object$data
Returns
Zend_Amf_Parse_Amf0_Serializer
writeTypeMarker ( $data,
  $markerType = null,
  $dataByVal = false 
)

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
mixed$data
mixed$markerType
mixed$dataByVal
Returns
Zend_Amf_Parse_Amf0_Serializer
Exceptions
Zend_Amf_Exceptionfor unrecognized types or data

Member Data Documentation

$_className = ''
protected
$_referenceObjects = array()
protected