[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Service/Amazon/Ec2/ -> Abstract.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 277 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions

  __construct()
  setRegion()
  _getRegion()
  sendRequest()
  addRequiredParameters()
  signParameters()
  checkForErrors()

Functions
Functions that are not part of a class:

__construct($accessKey=null, $secretKey=null, $region=null)   X-Ref
Create Amazon client.

param: string $access_key       Override the default Access Key
param: string $secret_key       Override the default Secret Key
param: string $region           Sets the AWS Region
return: void

setRegion($region)   X-Ref
Set which region you are working in.  It will append the
end point automaticly

param: string $region

_getRegion()   X-Ref
Method to fetch the AWS Region

return: string

sendRequest(array $params = array()   X-Ref
Sends a HTTP request to the queue service using Zend_Http_Client

param: array $params         List of parameters to send with the request
return: Zend_Service_Amazon_Ec2_Response

addRequiredParameters(array $parameters)   X-Ref
Adds required authentication and version parameters to an array of
parameters

The required parameters are:
- AWSAccessKey
- SignatureVersion
- Timestamp
- Version and
- Signature

If a required parameter is already set in the <tt>$parameters</tt> array,
it is overwritten.

param: array $parameters the array to which to add the required
return: array

signParameters(array $paramaters)   X-Ref
Computes the RFC 2104-compliant HMAC signature for request parameters

This implements the Amazon Web Services signature, as per the following
specification:

1. Sort all request parameters (including <tt>SignatureVersion</tt> and
excluding <tt>Signature</tt>, the value of which is being created),
ignoring case.

2. Iterate over the sorted list and append the parameter name (in its
original case) and then its value. Do not URL-encode the parameter
values before constructing this string. Do not use any separator
characters when appending strings.

param: array  $parameters the parameters for which to get the signature.
param: string $secretKey  the secret key to use to sign the parameters.
return: string the signed data.

checkForErrors(Zend_Service_Amazon_Ec2_Response $response)   X-Ref
Checks for errors responses from Amazon

param: Zend_Service_Amazon_Ec2_Response $response the response object to
return: void



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1