API Documentation

Zend/Amf/Response.php

Show: inherited
Table of Contents

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 license@zend.com 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 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Amf_Response

Package: Zend\Amf

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

Propertyprotectedarray  $_bodies= 'array()'

Array of Zend_Amf_Value_MessageBody objects

Default valuearray()Details
Type
array
Propertyprotectedarray  $_headers= 'array()'

Array of Zend_Amf_Value_MessageHeader objects

Default valuearray()Details
Type
array
Propertyprotectedint  $_objectEncoding= '0'

Object encoding for response
Default value0Details
Type
int
Propertyprotected\Zend_Amf_Parse_OutputStream  $_outputStream= ''

Methods

methodpublic__toString( ) : string

Return the output stream content

Returns
Type Description
string
methodpublicaddAmfBody( \Zend_Amf_Value_MessageBody $body ) : \Zend_Amf_Response

Add an AMF body to be sent to the Flash Player

Parameters
Name Type Description
$body \Zend_Amf_Value_MessageBody
Returns
Type Description
\Zend_Amf_Response
methodpublicaddAmfHeader( \Zend_Amf_Value_MessageHeader $header ) : \Zend_Amf_Response

Add an AMF Header to be sent back to the flash player

Parameters
Name Type Description
$header \Zend_Amf_Value_MessageHeader
Returns
Type Description
\Zend_Amf_Response
methodpublicfinalize( ) : \Zend_Amf_Response

Instantiate new output stream and start serialization

Returns
Type Description
\Zend_Amf_Response
methodpublicgetAmfBodies( ) : array

Return an array of AMF bodies to be serialized

Returns
Type Description
array
methodpublicgetAmfHeaders( ) : array

Retrieve attached AMF message headers

Returns
Type Description
array Array of Zend_Amf_Value_MessageHeader objects
methodpublicgetResponse( ) : string

Return the output stream content

Returns
Type Description
string The contents of the output stream
methodpublicsetObjectEncoding( int $encoding ) : \Zend_Amf_Response

Set the AMF encoding that will be used for serialization

Parameters
Name Type Description
$encoding int
Returns
Type Description
\Zend_Amf_Response
methodpublicwriteMessage( \Zend_Amf_Parse_OutputStream $stream ) : \Zend_Amf_Response

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

Parameters
Name Type Description
$stream \Zend_Amf_Parse_OutputStream
Returns
Type Description
\Zend_Amf_Response
Documentation was generated by DocBlox 0.15.1.