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.
AMF Request object -- Request via HTTP
Extends {@link Zend_Amf_Request} to accept a request via HTTP. Request is built at construction time using a raw POST; if no data is available, the request is declared a fault.

__construct(
)
:
void
Constructor
Attempts to read from php://input to get raw POST request; if an error occurs in doing so, or if the AMF body is invalid, the request is declared a fault.

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

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

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

getObjectEncoding(
)
:
int
Return the either 0 or 3 for respect AMF version
Inherited from: \Zend_Amf_Request::getObjectEncoding()Type | Description |
---|---|
int |

initialize(
string $request
)
:
\Zend_Amf_Request
Prepare the AMF InputStream for parsing.
Inherited from: \Zend_Amf_Request::initialize()
readBody(
)
:
\Zend_Amf_Value_MessageBody
Deserialize a message body from the input stream
Inherited from: \Zend_Amf_Request::readBody()Type | Description |
---|---|
\Zend_Amf_Value_MessageBody |

readHeader(
)
:
\Zend_Amf_Value_MessageHeader
Deserialize a message header from the input stream.
Inherited from: \Zend_Amf_Request::readHeader()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_Request
Takes the raw AMF input stream and converts it into valid PHP objects
Inherited from: \Zend_Amf_Request::readMessage()Name | Type | Description |
---|---|---|
$stream | Zend_Amf_Parse_InputStream |
Type | Description |
---|---|
\Zend_Amf_Request |

setObjectEncoding(
mixed $int
)
:
\Zend_Amf_Request
Set the object response encoding
Inherited from: \Zend_Amf_Request::setObjectEncoding()