API Documentation

Amf/Request.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Amf
version
$Id: Request.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Amf_Request

Description

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.

Zend_Amf_Request

copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Amf
todo
Currently not checking if the object needs to be Type Mapped to a server object.
Properties
$_clientType
$_bodies
$_headers
$_objectEncoding
$_inputStream
$_deserializer
$_time
Methods
initialize
readMessage
readHeader
readBody
getAmfBodies
addAmfBody
getAmfHeaders
getObjectEncoding
setObjectEncoding

Description

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.

Properties

$_bodies

array $_bodies = 'array'

Details

$_bodies
array
Message bodies
visibility
protected
default
array
final
false
static
false

$_clientType

int $_clientType = '0'

Details

$_clientType
int
AMF client type (AMF0, AMF3)
visibility
protected
default
0
final
false
static
false

$_deserializer

Zend_Amf_Parse_AMF0_Deserializer $_deserializer = ''

Details

$_deserializer
Zend_Amf_Parse_AMF0_Deserializer
visibility
protected
default
final
false
static
false

$_headers

array $_headers = 'array'

Details

$_headers
array
Message headers
visibility
protected
default
array
final
false
static
false

$_inputStream

Zend_Amf_Parse_InputStream $_inputStream = ''

Details

$_inputStream
Zend_Amf_Parse_InputStream
visibility
protected
default
final
false
static
false

$_objectEncoding

int $_objectEncoding = '0'

Details

$_objectEncoding
int
Message encoding to use for objects in response
visibility
protected
default
0
final
false
static
false

$_time

mixed $_time = ''

Time of the request

Details

$_time
mixed
visibility
protected
default
final
false
static
false

Methods

addAmfBody

addAmfBody( Zend_Amf_Value_MessageBody $message ) : Zend_Amf_Request

Accessor to private array of message bodies.

Arguments
$message
Zend_Amf_Value_MessageBody
Details
visibility
public
final
false
static
false

getAmfBodies

getAmfBodies( ) : array

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

Output
array
{target, response, length, content}
Details
visibility
public
final
false
static
false

getAmfHeaders

getAmfHeaders( ) : array

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

Output
array
{operation, mustUnderstand, length, param}
Details
visibility
public
final
false
static
false

getObjectEncoding

getObjectEncoding( ) : int

Return the either 0 or 3 for respect AMF version

Output
int
Details
visibility
public
final
false
static
false

initialize

initialize( string $request ) : Zend_Amf_Request

Prepare the AMF InputStream for parsing.

Arguments
$request
string
Details
visibility
public
final
false
static
false

readBody

readBody( ) : Zend_Amf_Value_MessageBody

Deserialize a message body from the input stream

Details
visibility
public
final
false
static
false

readHeader

readHeader( ) : Zend_Amf_Value_MessageHeader

Deserialize a message header from the input stream.

A message header is structured as: - NAME String - MUST UNDERSTAND Boolean - LENGTH Int - DATA Object

Details
visibility
public
final
false
static
false

readMessage

readMessage(  $stream ) : Zend_Amf_Request

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

Arguments
$stream
Zend_Amf_Parse_InputStream
Details
visibility
public
final
false
static
false

setObjectEncoding

setObjectEncoding( mixed $int ) : Zend_Amf_Request

Set the object response encoding

Arguments
$int
mixed
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.