Cloud/DocumentService/Adapter/SimpleDb.php
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_Cloud
- Subpackage
- DocumentService
\Zend_Cloud_DocumentService_Adapter_SimpleDb
Package: Zend_Cloud\DocumentServiceSimpleDB adapter for document service.
Provides functionality surrounding setting classes for each of:
- document objects
- document set objects
- query class objects
- Parent(s)
- \Zend_Cloud_DocumentService_Adapter_AbstractAdapter
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties
string $_queryClass = 'Zend_Cloud_DocumentService_Adapter_SimpleDb_Query'
Class to utilize for new query objects
Default value'Zend_Cloud_DocumentService_Adapter_SimpleDb_Query'
Details- Type
- string
Methods
_makeAttributes(string $name, array $attributes) : array
Convert array of key-value pairs to array of Amazon attributes
ParametersName | Type | Description |
---|
$name | string | |
---|
$attributes | array | |
---|
Returns _resolveAttributes(array $attributes, $returnDocument = false) : array
Convert array of Amazon attributes to array of key-value pairs
ParametersName | Type | Description |
---|
$attributes | array | |
---|
$returnDocument | | |
---|
Returns deleteDocument(string $collectionName, mixed $document, array $options = null) : boolean
ParametersName | Type | Description |
---|
$collectionName | string | Collection from which to delete document |
---|
$document | mixed | Document ID or Document object. |
---|
$options | array | |
---|
Returns fetchDocument(string $collectionName, mixed $documentId, array $options = null) : \Zend_Cloud_DocumentService_Document
Fetch single document by ID
ParametersName | Type | Description |
---|
$collectionName | string | Collection name |
---|
$documentId | mixed | Document ID, adapter-dependent |
---|
$options | array | |
---|
Returns listDocuments(string $collectionName, array | null $options = null) : \Zend_Cloud_DocumentService_DocumentSet
Returns a key/value array of document names to document objects.
ParametersName | Type | Description |
---|
$collectionName | string | Name of collection for which to list documents |
---|
$options | array | null | |
---|
Returnsquery(string $collectionName, string $query, array $options = null) : array
Query for documents stored in the document service. If a string is passed in
$query, the query string will be passed directly to the service.
ParametersName | Type | Description |
---|
$collectionName | string | Collection name |
---|
$query | string | |
---|
$options | array | |
---|
ReturnsType | Description |
---|
array | Zend_Cloud_DocumentService_DocumentSet |
updateDocument(string $collectionName, mixed | \Zend_Cloud_DocumentService_Document $documentId, array | \Zend_Cloud_DocumentService_Document $fieldset = null, array $options = null) : boolean
Update document. The new document replaces the existing document.
Option 'merge' specifies to add all attributes (if true) or
specific attributes ("attr" => true) instead of replacing them.
By default, attributes are replaced.
ParametersReturns