Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Amf_Parse_Amf3_Serializer Class Reference

Public Member Functions

 writeTypeMarker (&$data, $markerType=null, $dataByVal=false)
 Serialize PHP types to AMF3 and write to stream.
 
 writeInteger ($int)
 Write an AMF3 integer.
 
 writeString (&$string)
 Send string to output stream.
 
 writeByteArray (&$data)
 Send ByteArray to output stream.
 
 writeXml ($xml)
 Send xml to output stream.
 
 writeDate ($date)
 Convert DateTime/Zend_Date to AMF date.
 
 writeArray (&$array)
 Write a PHP array back to the amf output stream.
 
 writeObject ($object)
 Write object to ouput stream.
 
- Public Member Functions inherited from Zend_Amf_Parse_Serializer
 __construct (Zend_Amf_Parse_OutputStream $stream)
 Constructor.
 
 writeTypeMarker (&$content, $markerType=null, $contentByVal=false)
 Find the PHP object type and convert it into an AMF object type.
 

Protected Member Functions

 writeBinaryString (&$string)
 Send string to output stream, without trying to reference it.
 
 writeObjectReference (&$object, $objectByVal=false)
 Check if the given object is in the reference table, write the reference if it exists, otherwise add the object to the reference table.
 

Protected Attributes

 $_strEmpty = ''
 
 $_referenceObjects = array()
 
 $_referenceStrings = array()
 
 $_referenceDefinitions = array()
 
- Protected Attributes inherited from Zend_Amf_Parse_Serializer
 $_stream
 
 $mbStringFunctionsOverloaded
 

Member Function Documentation

writeArray ( $array)

Write a PHP array back to the amf output stream.

Parameters
array$array
Returns
Zend_Amf_Parse_Amf3_Serializer
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
writeByteArray ( $data)

Send ByteArray to output stream.

Parameters
string | Zend_Amf_Value_ByteArray$data
Returns
Zend_Amf_Parse_Amf3_Serializer
writeDate (   $date)

Convert DateTime/Zend_Date to AMF date.

Parameters
DateTime | Zend_Date$date
Returns
Zend_Amf_Parse_Amf3_Serializer
writeInteger (   $int)

Write an AMF3 integer.

Parameters
int | float$data
Returns
Zend_Amf_Parse_Amf3_Serializer
writeObject (   $object)

Write object to ouput stream.

Parameters
mixed$data
Returns
Zend_Amf_Parse_Amf3_Serializer
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
writeString ( $string)

Send string to output stream.

Parameters
string$string
Returns
Zend_Amf_Parse_Amf3_Serializer
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
writeXml (   $xml)

Send xml to output stream.

Parameters
DOMDocument | SimpleXMLElement$xml
Returns
Zend_Amf_Parse_Amf3_Serializer

Member Data Documentation

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