Amf/Request.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: Request.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Amf_Request
Handle the incoming AMF request by deserializing the data to php object types and storing the data for Zend_Amf_Server to handle for processing.
- Children
- \Zend_Amf_Request_Http
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Todo
- Currently not checking if the object needs to be Type Mapped to a server object.
Properties

int $_objectEncoding = 00Details- Type
- int
Methods

addAmfBody(\Zend_Amf_Value_MessageBody $message) : \Zend_Amf_RequestAccessor to private array of message bodies.
| Name | Type | Description |
|---|---|---|
| $message | \Zend_Amf_Value_MessageBody |
| Type | Description |
|---|---|
| \Zend_Amf_Request |

getAmfBodies() : arrayReturn an array of the body objects that were found in the amf request.
| Type | Description |
|---|---|
| array | {target, response, length, content} |

getAmfHeaders() : arrayReturn an array of headers that were found in the amf request.
| Type | Description |
|---|---|
| array | {operation, mustUnderstand, length, param} |

getObjectEncoding() : intReturn the either 0 or 3 for respect AMF version
| Type | Description |
|---|---|
| int |

initialize(string $request) : \Zend_Amf_RequestPrepare the AMF InputStream for parsing.
| Name | Type | Description |
|---|---|---|
| $request | string |
| Type | Description |
|---|---|
| \Zend_Amf_Request |

readBody() : \Zend_Amf_Value_MessageBodyDeserialize a message body from the input stream
| Type | Description |
|---|---|
| \Zend_Amf_Value_MessageBody |

readHeader() : \Zend_Amf_Value_MessageHeaderDeserialize a message header from the input stream.
A message header is structured as: - NAME String - MUST UNDERSTAND Boolean - LENGTH Int - DATA Object
| Type | Description |
|---|---|
| \Zend_Amf_Value_MessageHeader |

readMessage( $stream) : \Zend_Amf_RequestTakes the raw AMF input stream and converts it into valid PHP objects
| Name | Type | Description |
|---|---|---|
| $stream | Zend_Amf_Parse_InputStream |
| Type | Description |
|---|---|
| \Zend_Amf_Request |

setObjectEncoding(mixed $int) : \Zend_Amf_RequestSet the object response encoding
| Name | Type | Description |
|---|---|---|
| $int | mixed |
| Type | Description |
|---|---|
| \Zend_Amf_Request |