\Zend_Amf_Response
Handles converting the PHP object ready for response back into AMF
- Copyright: Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Amf_Response
{
- // members
- protected integer $_objectEncoding = 0;
- protected array $_bodies = ;
- protected array $_headers = ;
- protected Zend_Amf_Parse_OutputStream $_outputStream;
- // methods
- public Zend_Amf_Response finalize()
- public Zend_Amf_Response writeMessage()
- public string getResponse()
- public string __toString()
- public Zend_Amf_Response addAmfBody()
- public array getAmfBodies()
- public Zend_Amf_Response addAmfHeader()
- public array getAmfHeaders()
- public Zend_Amf_Response setObjectEncoding()
Members
protected
- $_bodies
—
array
Array of Zend_Amf_Value_MessageBody objects - $_headers
—
array
Array of Zend_Amf_Value_MessageHeader objects - $_objectEncoding — int
- $_outputStream — Zend_Amf_Parse_OutputStream
Methods
public
- __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 create and AMF stream.