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

Public Member Functions

 writeTypeMarker (&$data, $markerType=null, $dataByVal=false)
 writeInteger ($int)
 writeString (&$string)
 writeByteArray (&$data)
 writeXml ($xml)
 writeDate ($date)
 writeArray (&$array)
 writeObject ($object)

Protected Member Functions

 writeBinaryString (&$string)
 writeObjectReference (&$object, $objectByVal=false)

Protected Attributes

 $_strEmpty = ''
 $_referenceObjects = array()
 $_referenceStrings = array()
 $_referenceDefinitions = array()

Detailed Description

Definition at line 41 of file Serializer.php.


Member Function Documentation

writeArray ( &$  array)

Write a PHP array back to the amf output stream

Parameters:
array$array
Returns:
Zend_Amf_Parse_Amf3_Serializer

Definition at line 338 of file Serializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

writeBinaryString ( &$  string) [protected]

Send string to output stream, without trying to reference it. The string is prepended with strlen($string) << 1 | 0x01

Parameters:
string$string
Returns:
Zend_Amf_Parse_Amf3_Serializer

Definition at line 217 of file Serializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

writeByteArray ( &$  data)

Send ByteArray to output stream

Parameters:
string | Zend_Amf_Value_ByteArray$data
Returns:
Zend_Amf_Parse_Amf3_Serializer

Definition at line 257 of file Serializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

writeDate ( date)

Convert DateTime/Zend_Date to AMF date

Parameters:
DateTime | Zend_Date$date
Returns:
Zend_Amf_Parse_Amf3_Serializer

Definition at line 311 of file Serializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

writeInteger ( int)

Write an AMF3 integer

Parameters:
int | float$data
Returns:
Zend_Amf_Parse_Amf3_Serializer

Definition at line 183 of file Serializer.php.

Here is the caller graph for this function:

writeObject ( object)

Write object to ouput stream

Parameters:
mixed$data
Returns:
Zend_Amf_Parse_Amf3_Serializer

Definition at line 407 of file Serializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

writeObjectReference ( &$  object,
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
mixed$objectByValobject to check for reference
Returns:
Boolean true, if the reference was written, false otherwise

Definition at line 381 of file Serializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

writeString ( &$  string)

Send string to output stream

Parameters:
string$string
Returns:
Zend_Amf_Parse_Amf3_Serializer

Definition at line 231 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 
)

Serialize 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

Parameters:
mixed$data
int$markerType
mixed$dataByVal
Returns:
void

Reimplemented from Zend_Amf_Parse_Serializer.

Definition at line 79 of file Serializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

writeXml ( xml)

Send xml to output stream

Parameters:
DOMDocument | SimpleXMLElement$xml
Returns:
Zend_Amf_Parse_Amf3_Serializer

Definition at line 283 of file Serializer.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$_referenceDefinitions = array() [protected]

Definition at line 65 of file Serializer.php.

$_referenceObjects = array() [protected]

Definition at line 53 of file Serializer.php.

$_referenceStrings = array() [protected]

Definition at line 59 of file Serializer.php.

$_strEmpty = '' [protected]

Definition at line 47 of file Serializer.php.


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