Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Amf_Request Class Reference

Public Member Functions

 initialize ($request)
 Prepare the AMF InputStream for parsing.
 
 readMessage (Zend_Amf_Parse_InputStream $stream)
 Takes the raw AMF input stream and converts it into valid PHP objects.
 
 readHeader ()
 Deserialize a message header from the input stream.
 
 readBody ()
 Deserialize a message body from the input stream.
 
 getAmfBodies ()
 Return an array of the body objects that were found in the amf request.
 
 addAmfBody (Zend_Amf_Value_MessageBody $message)
 Accessor to private array of message bodies.
 
 getAmfHeaders ()
 Return an array of headers that were found in the amf request.
 
 getObjectEncoding ()
 Return the either 0 or 3 for respect AMF version.
 
 setObjectEncoding ($int)
 Set the object response encoding.
 

Protected Attributes

 $_clientType = 0
 
 $_bodies = array()
 
 $_headers = array()
 
 $_objectEncoding = 0
 
 $_inputStream
 
 $_deserializer
 
 $_time
 

Member Function Documentation

addAmfBody ( Zend_Amf_Value_MessageBody  $message)

Accessor to private array of message bodies.

Parameters
Zend_Amf_Value_MessageBody$message
Returns
Zend_Amf_Request
getAmfBodies ( )

Return an array of the body objects that were found in the amf request.

Returns
array {target, response, length, content}
getAmfHeaders ( )

Return an array of headers that were found in the amf request.

Returns
array {operation, mustUnderstand, length, param}
getObjectEncoding ( )

Return the either 0 or 3 for respect AMF version.

Returns
int
initialize (   $request)

Prepare the AMF InputStream for parsing.

Parameters
string$request
Returns
Zend_Amf_Request
readBody ( )

Deserialize a message body from the input stream.

Returns
Zend_Amf_Value_MessageBody
readHeader ( )

Deserialize a message header from the input stream.

A message header is structured as:

  • NAME String
  • MUST UNDERSTAND Boolean
  • LENGTH Int
  • DATA Object
Returns
Zend_Amf_Value_MessageHeader
readMessage ( Zend_Amf_Parse_InputStream  $stream)

Takes the raw AMF input stream and converts it into valid PHP objects.

Parameters
Zend_Amf_Parse_InputStream
Returns
Zend_Amf_Request
setObjectEncoding (   $int)

Set the object response encoding.

Parameters
mixed$int
Returns
Zend_Amf_Request

Member Data Documentation

$_bodies = array()
protected
$_clientType = 0
protected
$_deserializer
protected
$_headers = array()
protected
$_inputStream
protected
$_objectEncoding = 0
protected
$_time
protected