Table 32. Zend_Cloud_DocumentService_Adapter Common Options
| Option key | Description | Used in | Required | Default |
|---|---|---|---|---|
| document_class |
Class to use to represent returned documents. The class provided must extend
|
Constructor | No | Zend_Cloud_Document_Service_Document |
| documentset_class |
Class to use to represent collections of documents,
|
Constructor | No | Zend_Cloud_DocumentService_DocumentSet |
Table 33. Zend_Cloud_DocumentService_Adapter_SimpleDb Options
| Option key | Description | Used in | Required | Default |
|---|---|---|---|---|
| query_class |
Class to use for creating and assembling queries for this document
service; |
Constructor | No | Zend_Cloud_DocumentService_Adapter_SimpleDb_Query |
| aws_accesskey | Your Amazon AWS access key | Constructor | Yes | None |
| aws_secretkey | Your Amazon AWS secret key | Constructor | Yes | None |
| http_adapter | HTTP adapter to use in all access operations | Constructor | No | Zend_Http_Client_Adapter_Socket |
| merge |
If a boolean true, all attribute values are merged. You may also specify an array of key pairs, where the key is the attribute key to merge, and the value indicates whether or not to merge; a boolean true value will merge the given key. Any attributes not specified in this array will be replaced. |
updateDocument() |
No | True |
| return_documents |
If a boolean true, |
query() |
No | True |
Table 34. Zend_Cloud_DocumentService_Adapter_WindowsAzure Options
| Option key | Description | Used in | Required | Default |
|---|---|---|---|---|
| query_class |
Class to use for creating and assembling queries for this document
service; |
Constructor | No | Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query |
| default_partition_key |
The default partition key to use if none is specified in the document identifier. Windows Azure requires a two-fold document ID, consisting of a PartitionKey and a RowKey. The PartitionKey will typically be common across your database or a collection, while the RowKey will vary. As such, this setting allows you to specify the default PartitionKey to utilize for all documents. If not specified, the adapter will default to using the collection name as the PartitionKey. |
Constructor, setDefaultPartitionKey()
|
Name of whatever collection the document belongs to | |
| storage_accountname | Windows Azure account name | Constructor | Yes | None |
| storage_accountkey | Windows Azure account key | Constructor | Yes | None |
| storage_host |
Windows Azure access host, default is
|
Constructor | No | table.core.windows.net |
| storage_proxy_host | Proxy hostname | Constructor | No | None |
| storage_proxy_port | Proxy port | Constructor | No | 8080 |
| storage_proxy_credentials | Proxy credentials | Constructor | No | None |
| HTTP Adapter | HTTP adapter to use in all access operations | Constructor | No | None |
| verify_etag |
Verify ETag on the target document and perform the operation only if the ETag matches the expected value |
updateDocument(),
replaceDocument(),
deleteDocument()
|
No | False |




