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 = 10
Period after which HTTP request will timeout in seconds
Default value10
Details- Type
- n/a
$_signatureMethod = 'HmacSHA256'
Signature Encoding Method
Default value'HmacSHA256'
Details- Type
- n/a
Methods
__construct( $accessKey, $secretKey) : void
Create Amazon SimpleDB client.
ParametersName | Type | Description |
---|
$accessKey | | |
---|
$secretKey | | |
---|
_addRequiredParameters(array $parameters) : array
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 $parameters array,
it is overwritten.
ParametersName | Type | Description |
---|
$parameters | array | the array to which to add the required
parameters. |
---|
Returns_sendRequest(array $params = array()) : \Zend_Service_Amazon_SimpleDb_Response
Sends a HTTP request to the SimpleDB service using Zend_Http_Client
ParametersName | Type | Description |
---|
$params | array | List of parameters to send with the request |
---|
ReturnsThrows _signParameters( $paramaters) : string
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.
ParametersName | Type | Description |
---|
$paramaters | | |
---|
ReturnsType | Description |
---|
string | the signed data. |
batchPutAttributes(array $items, string $domainName, array $replace = array()) : void
Add many attributes at once
ParametersName | Type | Description |
---|
$items | array | |
---|
$domainName | string | |
---|
$replace | array | |
---|
createDomain(string $domainName) : boolean
ParametersName | Type | Description |
---|
$domainName | string | Valid domain name of the domain to create |
---|
ReturnsType | Description |
---|
boolean | True if successful, false if not |
deleteDomain(string $domainName) : boolean
ParametersName | Type | Description |
---|
$domainName | string | Valid domain name of the domain to delete |
---|
ReturnsType | Description |
---|
boolean | True if successful, false if not |
domainMetadata(string $domainName) : array
ParametersName | Type | Description |
---|
$domainName | string | Name of the domain for which metadata will be requested |
---|
ReturnsType | Description |
---|
array | Key/value array of metadatum names and values. |
getAttributes(string $domainName, $itemName, $attributeName = null) : void
Get attributes API method
ParametersName | Type | Description |
---|
$domainName | string | Domain name within database |
---|
$itemName | | |
---|
$attributeName | | |
---|
quoteName(string $name) : string
Quote SDB column or table name
Wraps it in ``
ParametersName | Type | Description |
---|
$name | string | |
---|
Returnsselect(string $selectExpression, null | string $nextToken = null) : \Zend_Service_Amazon_SimpleDb_Page
Select items from the database
ParametersName | Type | Description |
---|
$selectExpression | string | |
---|
$nextToken | null | string | |
---|
Returns