Amf/Response.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Amf
- Version
- $Id: Response.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Amf_Response
Handles converting the PHP object ready for response back into AMF
- Children
- \Zend_Amf_Response_Http
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

array $_bodies = array()Array of Zend_Amf_Value_MessageBody objects
array()Details- Type
- array

array $_headers = array()Array of Zend_Amf_Value_MessageHeader objects
array()Details- Type
- array
Methods

addAmfBody(\Zend_Amf_Value_MessageBody $body) : \Zend_Amf_ResponseAdd an AMF body to be sent to the Flash Player
| Name | Type | Description |
|---|---|---|
| $body | \Zend_Amf_Value_MessageBody |
| Type | Description |
|---|---|
| \Zend_Amf_Response |

addAmfHeader(\Zend_Amf_Value_MessageHeader $header) : \Zend_Amf_ResponseAdd an AMF Header to be sent back to the flash player
| Name | Type | Description |
|---|---|---|
| $header | \Zend_Amf_Value_MessageHeader |
| Type | Description |
|---|---|
| \Zend_Amf_Response |

finalize() : \Zend_Amf_ResponseInstantiate new output stream and start serialization
| Type | Description |
|---|---|
| \Zend_Amf_Response |

getAmfHeaders() : arrayRetrieve attached AMF message headers
| Type | Description |
|---|---|
| array | Array of Zend_Amf_Value_MessageHeader objects |

getResponse() : stringReturn the output stream content
| Type | Description |
|---|---|
| string | The contents of the output stream |

setObjectEncoding(int $encoding) : \Zend_Amf_ResponseSet the AMF encoding that will be used for serialization
| Name | Type | Description |
|---|---|---|
| $encoding | int |
| Type | Description |
|---|---|
| \Zend_Amf_Response |

writeMessage(\Zend_Amf_Parse_OutputStream $stream) : \Zend_Amf_ResponseSerialize the PHP data types back into Actionscript and create and AMF stream.
| Name | Type | Description |
|---|---|---|
| $stream | \Zend_Amf_Parse_OutputStream |
| Type | Description |
|---|---|
| \Zend_Amf_Response |