Class AmfphpDummy

Description

Implements interfaces:

This catches browser requests to the gateway, to show something more helpful than an error message.

  • author: Ariel Sommeria-Klein, Daniel Hoffmann (intermedi8.de)

Located in /Amfphp/Plugins/AmfphpDummy/AmfphpDummy.php (line 19)


	
			
Class Constant Summary
 CONTENT_TYPE = "application/x-www-form-urlencoded"
Variable Summary
Method Summary
AmfphpDummy __construct ([ $config = null])
void deserialize ( $getData,  $postData,  $rawPostData)
this filterHandler (mixed $handler, String $contentType)
array filterHeaders (array $headers,  $contentType)
void handleDeserializedRequest ( $deserializedRequest,  $serviceRouter)
void handleException ( $exception)
void serialize ( $data)
Variables
mixed $callDurationMs (line 43)
  • access: protected
mixed $callStartTimeMs (line 42)
  • access: protected
mixed $methodName (line 26)
  • access: protected
array $parameters (line 32)

used for service call

  • access: protected
array $parametersAssoc (line 39)

associative array of parameters. Used to set the parameters input fields to the same values again after a call.

note: stored encoded because that's the way we need them to show them in the dialog

  • access: protected
mixed $returnErrorDetails = false (line 44)
  • access: protected
mixed $serviceName (line 25)
  • access: protected
mixed $serviceRouter (line 40)
  • access: protected
mixed $showResult (line 41)
  • access: protected
Methods
Constructor __construct (line 50)

constructor.

  • access: public
AmfphpDummy __construct ([ $config = null])
  • array $config: optional key/value pairs in an associative array. Used to override default configuration values.
deserialize (line 75)
void deserialize ( $getData,  $postData,  $rawPostData)
  • array $getData
  • array $postData
  • $rawPostData
filterHandler (line 66)

if no content type, then returns this.

  • return: or null
  • access: public
this filterHandler (mixed $handler, String $contentType)
  • String $contentType
  • mixed $handler: null at call in gateway.
filterHeaders (line 108)

filter the headers to make sure the content type is set to text/html if the request was handled by the service browser

  • access: public
array filterHeaders (array $headers,  $contentType)
  • array $headers
  • $contentType
handleDeserializedRequest (line 83)
void handleDeserializedRequest ( $deserializedRequest,  $serviceRouter)
handleException (line 91)
void handleException ( $exception)
  • Exception $exception
serialize (line 98)
void serialize ( $data)
  • $data
Class Constants
CONTENT_TYPE = "application/x-www-form-urlencoded" (line 23)

if content type is not set or content is set to "application/x-www-form-urlencoded", this plugin will handle the request

Documentation generated on Tue, 29 May 2012 23:41:59 +0200 by phpDocumentor 1.4.3