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

uses
package Zend_Amf
subpackage Parse_Amf0
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Amf_Parse_Serializer

 Methods

Constructor

__construct(\Zend_Amf_Parse_OutputStream $stream) : void
Inherited

Parameters

$stream

\Zend_Amf_Parse_OutputStream

Encountered and AMF3 Type Marker use AMF3 serializer. Once AMF3 is encountered it will not return to AMf0.

writeAmf3TypeMarker(string $data) : \Zend_Amf_Parse_Amf0_Serializer

Parameters

$data

string

Returns

\Zend_Amf_Parse_Amf0_Serializer

Write a standard numeric array to the output stream. If a mixed array is encountered call writeTypeMarker with mixed array.

writeArray(array $array) : \Zend_Amf_Parse_Amf0_Serializer

Parameters

$array

array

Returns

\Zend_Amf_Parse_Amf0_Serializer

Convert the DateTime into an AMF Date

writeDate(\DateTime|\Zend_Date $data) : \Zend_Amf_Parse_Amf0_Serializer

Parameters

$data

\DateTime\Zend_Date

Returns

\Zend_Amf_Parse_Amf0_Serializer

Write a PHP array with string or mixed keys.

writeObject($object) : \Zend_Amf_Parse_Amf0_Serializer

Parameters

$object

Returns

\Zend_Amf_Parse_Amf0_Serializer

Determine type and serialize accordingly

writeTypeMarker(mixed $data, mixed $markerType = null, mixed $dataByVal = false) : \Zend_Amf_Parse_Amf0_Serializer

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

inherited_from \Zend_Amf_Parse_Serializer::writeTypeMarker()

Parameters

$data

mixed

$markerType

mixed

$dataByVal

mixed

Exceptions

\Zend_Amf_Exception for unrecognized types or data

Returns

\Zend_Amf_Parse_Amf0_Serializer

Find the PHP object type and convert it into an AMF object type

writeTypeMarker(mixed $content, integer $markerType = null, mixed $contentByVal = false) : void
Inherited

Parameters

$content

mixed

$markerType

integer

$contentByVal

mixed

Write a class mapped object to the output stream.

writeTypedObject(object $data) : \Zend_Amf_Parse_Amf0_Serializer

Parameters

$data

object

Returns

\Zend_Amf_Parse_Amf0_Serializer

Find if the class name is a class mapped name and return the respective classname if it is.

getClassName(object $object) : false | string

Parameters

$object

object

Returns

falsestring$className

Check if the given object is in the reference table, write the reference if it exists, otherwise add the object to the reference table

writeObjectReference(mixed $object, string $markerType, mixed $objectByVal = false) : Boolean

Parameters

$object

mixed

object reference to check for reference

$markerType

string

AMF type of the object to write

$objectByVal

mixed

object to check for reference

Returns

Booleantrue, if the reference was written, false otherwise

 Properties

 

Name of the class to be returned

$_className : string

Default

''
 

An array of reference objects

$_referenceObjects : array

Default

array()
 

Reference to the current output stream being constructed

$_stream : string

Default

 

str* functions overloaded using mbstring.func_overload

$mbStringFunctionsOverloaded : boolean

Default