Inheritances
Files
Overview
FRAMES
NO FRAMES

Class Zend_Amf_Response

Zend_Amf
|- class Zend_Amf_Response
Defined in line 38 of file Amf/Response.php.
Handles converting the PHP object ready for response back into AMF
PackageZend_Amf
CopyrightCopyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
Licensehttp://framework.zend.com/license/new-bsd New BSD License

Summary

Instance fields
# $_bodies Array of Zend_Amf_Value_MessageBody objects
# $_headers Array of Zend_Amf_Value_MessageHeader objects
# $_objectEncoding
# $_outputStream
Instance methods
+ __toString() Return the output stream content
+ addAmfBody() Add an AMF body to be sent to the Flash Player
+ addAmfHeader() Add an AMF Header to be sent back to the flash player
+ finalize() Instantiate new output stream and start serialization
+ getAmfBodies() Return an array of AMF bodies to be serialized
+ getAmfHeaders() Retrieve attached AMF message headers
+ getResponse() Return the output stream content
+ setObjectEncoding() Set the AMF encoding that will be used for serialization
+ writeMessage() Serialize the PHP data types back into Actionscript and

Details

Instance fields

$_bodies
protected $_bodies = array()
Var array
$_headers
protected $_headers = array()
Var array
$_objectEncoding
protected $_objectEncoding = 0
Var int Object encoding for response

Instance methods

__toString()
public function __toString( )
Return the output stream content
Returns string
addAmfBody()
public function addAmfBody( Zend_Amf_Value_MessageBody $body)
Add an AMF body to be sent to the Flash Player
Parameters
Zend_Amf_Value_MessageBody $body
addAmfHeader()
public function addAmfHeader( Zend_Amf_Value_MessageHeader $header)
Add an AMF Header to be sent back to the flash player
Parameters
Zend_Amf_Value_MessageHeader $header
finalize()
public function finalize( )
Instantiate new output stream and start serialization
getAmfBodies()
public function getAmfBodies( )
Return an array of AMF bodies to be serialized
Returns array
getAmfHeaders()
public function getAmfHeaders( )
Retrieve attached AMF message headers
Returns array Array of Zend_Amf_Value_MessageHeader objects
getResponse()
public function getResponse( )
Return the output stream content
Returns string The contents of the output stream
Overriden by getResponse() in class : Zend_Amf_Response_Http
setObjectEncoding()
public function setObjectEncoding( $encoding)
Set the AMF encoding that will be used for serialization
Parameters
int $encoding
writeMessage()
public function writeMessage( Zend_Amf_Parse_OutputStream $stream)
Serialize the PHP data types back into Actionscript and
create and AMF stream.
Parameters
Zend_Amf_Parse_OutputStream $stream