Moodle  2.2.1
http://www.collinsharper.com
Zend_Amf_Parse_Amf0_Serializer Class Reference
Inheritance diagram for Zend_Amf_Parse_Amf0_Serializer:
Collaboration diagram for Zend_Amf_Parse_Amf0_Serializer:

Public Member Functions

 writeTypeMarker (&$data, $markerType=null, $dataByVal=false)
 writeObject ($object)
 writeArray (&$array)
 writeDate ($data)
 writeTypedObject ($data)
 writeAmf3TypeMarker (&$data)

Protected Member Functions

 writeObjectReference (&$object, $markerType, $objectByVal=false)
 getClassName ($object)

Protected Attributes

 $_className = ''
 $_referenceObjects = array()

Detailed Description

Definition at line 38 of file Serializer.php.


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

Definition at line 329 of file Serializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 314 of file Serializer.php.

Here is the caller graph for this 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
Returns:
Zend_Amf_Parse_Amf0_Serializer

Definition at line 250 of file Serializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

writeDate ( data)

Convert the DateTime into an AMF Date

Parameters:
DateTime | Zend_Date$data
Returns:
Zend_Amf_Parse_Amf0_Serializer

Definition at line 273 of file Serializer.php.

Here is the caller graph for this function:

writeObject ( object)

Write a PHP array with string or mixed keys.

Parameters:
object$data
Returns:
Zend_Amf_Parse_Amf0_Serializer

Definition at line 227 of file Serializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 195 of file Serializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

writeTypedObject ( data)

Write a class mapped object to the output stream.

Parameters:
object$data
Returns:
Zend_Amf_Parse_Amf0_Serializer

Definition at line 300 of file Serializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented from Zend_Amf_Parse_Serializer.

Definition at line 64 of file Serializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$_className = '' [protected]

Definition at line 43 of file Serializer.php.

$_referenceObjects = array() [protected]

Definition at line 49 of file Serializer.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations