Service/Amazon/SimpleDb.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service_Amazon
- Subpackage
- SimpleDb
\Zend_Service_Amazon_SimpleDb
Package: Zend_Service_Amazon\SimpleDbAbstract Amazon class that handles the credentials for any of the Web Services that
Amazon offers
- Parent(s)
- \Zend_Service_Amazon_Abstract
<
\Zend_Service_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties



$_httpTimeout = 10Period after which HTTP request will timeout in seconds
Default value10Details- Type
- n/a



$_signatureMethod = 'HmacSHA256'Signature Encoding Method
Default value'HmacSHA256'Details- Type
- n/a
Methods



__construct( $accessKey, $secretKey) : voidCreate Amazon SimpleDB client.
Parameters| Name | Type | Description |
|---|
| $accessKey | | |
|---|
| $secretKey | | |
|---|



_addRequiredParameters(array $parameters) : arrayAdds 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 $parameters array,
it is overwritten.
Parameters| Name | Type | Description |
|---|
| $parameters | array | the array to which to add the required
parameters. |
|---|
Returns


_sendRequest(array $params = array()) : \Zend_Service_Amazon_SimpleDb_ResponseSends a HTTP request to the SimpleDB service using Zend_Http_Client
Parameters| Name | Type | Description |
|---|
| $params | array | List of parameters to send with the request |
|---|
ReturnsThrows 


_signParameters( $paramaters) : stringComputes 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.
Parameters| Name | Type | Description |
|---|
| $paramaters | | |
|---|
Returns| Type | Description |
|---|
| string | the signed data. |



batchPutAttributes(array $items, string $domainName, array $replace = array()) : voidAdd many attributes at once
Parameters| Name | Type | Description |
|---|
| $items | array | |
|---|
| $domainName | string | |
|---|
| $replace | array | |
|---|



createDomain(string $domainName) : booleanParameters| Name | Type | Description |
|---|
| $domainName | string | Valid domain name of the domain to create |
|---|
Returns| Type | Description |
|---|
| boolean | True if successful, false if not |



deleteDomain(string $domainName) : booleanParameters| Name | Type | Description |
|---|
| $domainName | string | Valid domain name of the domain to delete |
|---|
Returns| Type | Description |
|---|
| boolean | True if successful, false if not |



domainMetadata(string $domainName) : arrayParameters| Name | Type | Description |
|---|
| $domainName | string | Name of the domain for which metadata will be requested |
|---|
Returns| Type | Description |
|---|
| array | Key/value array of metadatum names and values. |



getAttributes(string $domainName, $itemName, $attributeName = null) : voidGet attributes API method
Parameters| Name | Type | Description |
|---|
| $domainName | string | Domain name within database |
|---|
| $itemName | | |
|---|
| $attributeName | | |
|---|



quoteName(string $name) : stringQuote SDB column or table name
Wraps it in ``
Parameters| Name | Type | Description |
|---|
| $name | string | |
|---|
Returns


select(string $selectExpression, null | string $nextToken = null) : \Zend_Service_Amazon_SimpleDb_PageSelect items from the database
Parameters| Name | Type | Description |
|---|
| $selectExpression | string | |
|---|
| $nextToken | null | string | |
|---|
Returns