\Zend_Amf_Response

Handles converting the PHP object ready for response back into AMF

Summary

Methods
Properties
Constants
finalize()
writeMessage()
getResponse()
__toString()
addAmfBody()
getAmfBodies()
addAmfHeader()
getAmfHeaders()
setObjectEncoding()
No public properties found
No constants found
No protected methods found
$_objectEncoding
$_bodies
$_headers
$_outputStream
N/A
No private methods found
No private properties found
N/A

Properties

$_objectEncoding

$_objectEncoding : integer

Type

integer — Object encoding for response

$_bodies

$_bodies : array

Array of Zend_Amf_Value_MessageBody objects

Type

array

$_headers

$_headers : array

Array of Zend_Amf_Value_MessageHeader objects

Type

array

Methods

finalize()

finalize() : \Zend_Amf_Response

Instantiate new output stream and start serialization

Returns

\Zend_Amf_Response

writeMessage()

writeMessage(\Zend_Amf_Parse_OutputStream  $stream) : \Zend_Amf_Response

Serialize the PHP data types back into Actionscript and create and AMF stream.

Parameters

\Zend_Amf_Parse_OutputStream $stream

Returns

\Zend_Amf_Response

getResponse()

getResponse() : string

Return the output stream content

Returns

string —

The contents of the output stream

__toString()

__toString() : string

Return the output stream content

Returns

string

getAmfBodies()

getAmfBodies() : array

Return an array of AMF bodies to be serialized

Returns

array

getAmfHeaders()

getAmfHeaders() : array

Retrieve attached AMF message headers

Returns

array —

Array of Zend_Amf_Value_MessageHeader objects

setObjectEncoding()

setObjectEncoding(integer  $encoding) : \Zend_Amf_Response

Set the AMF encoding that will be used for serialization

Parameters

integer $encoding

Returns

\Zend_Amf_Response