|
Moodle
2.2.1
http://www.collinsharper.com
|


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() | |
Definition at line 38 of file Serializer.php.
| getClassName | ( | $ | object | ) | [protected] |
Find if the class name is a class mapped name and return the respective classname if it is.
| object | $object |
Definition at line 329 of file Serializer.php.


| writeAmf3TypeMarker | ( | &$ | data | ) |
Encountered and AMF3 Type Marker use AMF3 serializer. Once AMF3 is encountered it will not return to AMf0.
| string | $data |
Definition at line 314 of file Serializer.php.

| writeArray | ( | &$ | array | ) |
Write a standard numeric array to the output stream. If a mixed array is encountered call writeTypeMarker with mixed array.
| array | $array |
Definition at line 250 of file Serializer.php.


| writeDate | ( | $ | data | ) |
Convert the DateTime into an AMF Date
| DateTime | Zend_Date | $data |
Definition at line 273 of file Serializer.php.

| writeObject | ( | $ | object | ) |
Write a PHP array with string or mixed keys.
| object | $data |
Definition at line 227 of file Serializer.php.


| 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
| mixed | $object | object reference to check for reference |
| $markerType | AMF type of the object to write | |
| mixed | $objectByVal | object to check for reference |
Definition at line 195 of file Serializer.php.


| writeTypedObject | ( | $ | data | ) |
Write a class mapped object to the output stream.
| object | $data |
Definition at line 300 of file Serializer.php.


| 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
| mixed | $data | |
| mixed | $markerType | |
| mixed | $dataByVal |
| Zend_Amf_Exception | for unrecognized types or data |
Reimplemented from Zend_Amf_Parse_Serializer.
Definition at line 64 of file Serializer.php.


$_className = '' [protected] |
Definition at line 43 of file Serializer.php.
$_referenceObjects = array() [protected] |
Definition at line 49 of file Serializer.php.