[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Amf/Parse/Amf0/ -> Serializer.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 362 lines (14 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Amf_Parse_Amf0_Serializer:: (8 methods):
  writeTypeMarker()
  writeObjectReference()
  writeObject()
  writeArray()
  writeDate()
  writeTypedObject()
  writeAmf3TypeMarker()
  getClassName()


Class: Zend_Amf_Parse_Amf0_Serializer  - X-Ref

Serializer PHP misc types back to there corresponding AMF0 Type Marker.

writeTypeMarker(&$data, $markerType = null, $dataByVal = false)   X-Ref
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

param: mixed $data
param: mixed $markerType
param: mixed $dataByVal
return: Zend_Amf_Parse_Amf0_Serializer

writeObjectReference(&$object, $markerType, $objectByVal = false)   X-Ref
Check if the given object is in the reference table, write the reference if it exists,
otherwise add the object to the reference table

param: mixed $object object reference to check for reference
param: $markerType AMF type of the object to write
param: mixed $objectByVal object to check for reference
return: Boolean true, if the reference was written, false otherwise

writeObject($object)   X-Ref
Write a PHP array with string or mixed keys.

param: object $data
return: Zend_Amf_Parse_Amf0_Serializer

writeArray(&$array)   X-Ref
Write a standard numeric array to the output stream. If a mixed array
is encountered call writeTypeMarker with mixed array.

param: array $array
return: Zend_Amf_Parse_Amf0_Serializer

writeDate($data)   X-Ref
Convert the DateTime into an AMF Date

param: DateTime|Zend_Date $data
return: Zend_Amf_Parse_Amf0_Serializer

writeTypedObject($data)   X-Ref
Write a class mapped object to the output stream.

param: object $data
return: Zend_Amf_Parse_Amf0_Serializer

writeAmf3TypeMarker(&$data)   X-Ref
Encountered and AMF3 Type Marker use AMF3 serializer. Once AMF3 is
encountered it will not return to AMf0.

param: string $data
return: Zend_Amf_Parse_Amf0_Serializer

getClassName($object)   X-Ref
Find if the class name is a class mapped name and return the
respective classname if it is.

param: object $object
return: false|string $className



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1