PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Supported Adapter Options

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 Zend_Cloud_DocumentService_Document to ensure compatibility with all document services. For all methods that return a document or collection of documents, this class will be used.

Constructor No Zend_Cloud_Document_Service_Document
documentset_class

Class to use to represent collections of documents, Zend_Cloud_DocumentService_DocumentSet by default. Typically, objects of this class will be returned by listDocuments() and query(). Any class provided for this configuration value must extend Zend_Cloud_DocumentService_DocumentSet.

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; select() will create objects of this class name, as will listDocuments().

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() returns a Zend_Cloud_DocumentService_DocumentSet object containing Zend_Cloud_DocumentService_Document objects (default case); otherwise, it returns an array of arrays.

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; select() will create objects of this class name, as will listDocuments().

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 table.core.windows.net

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

Zend Framework