Zend Framework
1.12
|
Public Member Functions | |
__construct ($accessKey, $secretKey) | |
Create Amazon SimpleDB client. | |
setEndpoint ($endpoint) | |
Set SimpleDB endpoint to use. | |
getEndpoint () | |
Get SimpleDB endpoint. | |
getAttributes ($domainName, $itemName, $attributeName=null) | |
Get attributes API method. | |
putAttributes ($domainName, $itemName, $attributes, $replace=array()) | |
Push attributes. | |
batchPutAttributes ($items, $domainName, array $replace=array()) | |
Add many attributes at once. | |
deleteAttributes ($domainName, $itemName, array $attributes=array()) | |
Delete attributes. | |
listDomains ($maxNumberOfDomains=100, $nextToken=null) | |
List domains. | |
domainMetadata ($domainName) | |
Retrieve domain metadata. | |
createDomain ($domainName) | |
Create a new domain. | |
deleteDomain ($domainName) | |
Delete a domain. | |
select ($selectExpression, $nextToken=null) | |
Select items from the database. | |
quote ($value) | |
Quote SDB value. | |
quoteName ($name) | |
Quote SDB column or table name. | |
![]() | |
__construct ($accessKey=null, $secretKey=null) | |
Create Amazon client. | |
Protected Member Functions | |
_sendRequest (array $params=array()) | |
Sends a HTTP request to the SimpleDB service using Zend_Http_Client. | |
_addRequiredParameters (array $parameters) | |
Adds required authentication and version parameters to an array of parameters. | |
_signParameters (array $paramaters) | |
Computes the RFC 2104-compliant HMAC signature for request parameters. | |
![]() | |
_getAccessKey () | |
Method to fetch the Access Key. | |
_getSecretKey () | |
Method to fetch the Secret AWS Key. | |
Protected Attributes | |
$_sdbEndpoint = 'sdb.amazonaws.com/' | |
The HTTP query server. | |
$_httpTimeout = 10 | |
Period after which HTTP request will timeout in seconds. | |
$_sdbApiVersion = '2009-04-15' | |
The API version to use. | |
$_signatureVersion = '2' | |
Signature Version. | |
$_signatureMethod = 'HmacSHA256' | |
Signature Encoding Method. | |
![]() | |
$_secretKey | |
$_accessKey | |
Additional Inherited Members | |
![]() | |
static | setKeys ($accessKey, $secretKey) |
Set the keys to use when accessing SQS. | |
![]() | |
static | $_defaultAccessKey = null |
static | $_defaultSecretKey = null |
__construct | ( | $accessKey, | |
$secretKey | |||
) |
Create Amazon SimpleDB client.
string | $access_key | Override the default Access Key |
string | $secret_key | Override the default Secret Key |
string | $region | Sets the AWS Region |
|
protected |
Adds required authentication and version parameters to an array of parameters.
The required parameters are:
If a required parameter is already set in the $parameters
array, it is overwritten.
array | $parameters | the array to which to add the required parameters. |
|
protected |
Sends a HTTP request to the SimpleDB service using Zend_Http_Client.
array | $params | List of parameters to send with the request |
Zend_Service_Amazon_SimpleDb_Exception |
|
protected |
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 SignatureVersion
and excluding Signature
, 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.
array | $parameters | the parameters for which to get the signature. |
string | $secretKey | the secret key to use to sign the parameters. |
batchPutAttributes | ( | $items, | |
$domainName, | |||
array | $replace = array() |
||
) |
Add many attributes at once.
array | $items | |
string | $domainName | |
array | $replace |
createDomain | ( | $domainName | ) |
Create a new domain.
string | $domainName | Valid domain name of the domain to create |
deleteAttributes | ( | $domainName, | |
$itemName, | |||
array | $attributes = array() |
||
) |
Delete attributes.
string | $domainName | |
string | $itemName | |
array | $attributes |
deleteDomain | ( | $domainName | ) |
Delete a domain.
string | $domainName | Valid domain name of the domain to delete |
domainMetadata | ( | $domainName | ) |
Retrieve domain metadata.
string | $domainName | Name of the domain for which metadata will be requested |
getAttributes | ( | $domainName, | |
$itemName, | |||
$attributeName = null |
|||
) |
Get attributes API method.
string | $domainName | Domain name within database |
string |
getEndpoint | ( | ) |
Get SimpleDB endpoint.
listDomains | ( | $maxNumberOfDomains = 100 , |
|
$nextToken = null |
|||
) |
List domains.
int | $maxNumberOfDomains | |
int | $nextToken |
putAttributes | ( | $domainName, | |
$itemName, | |||
$attributes, | |||
$replace = array() |
|||
) |
Push attributes.
string | $domainName | |
string | $itemName | |
array | Traverable | $attributes | |
array | $replace |
quote | ( | $value | ) |
Quote SDB value.
Wraps it in ''
string | $value |
quoteName | ( | $name | ) |
Quote SDB column or table name.
Wraps it in ``
string | $name |
select | ( | $selectExpression, | |
$nextToken = null |
|||
) |
Select items from the database.
string | $selectExpression | |
null | string | $nextToken |
setEndpoint | ( | $endpoint | ) |
Set SimpleDB endpoint to use.
string | Zend_Uri_Http | $endpoint |
|
protected |
Period after which HTTP request will timeout in seconds.
|
protected |
The API version to use.
|
protected |
The HTTP query server.
|
protected |
Signature Encoding Method.
|
protected |
Signature Version.