The Zend_Cloud_DocumentService_Adapter interface defines methods
that each concrete document service adapter implements. The following adapters are
shipped with the Simple Cloud API:
To instantiate a document service adapter, use the static method
Zend_Cloud_DocumentService_Factory::getAdapter(), which accepts
a configuration array or a Zend_Config object. The
document_adapter key should specify the concrete adapter class by
classname. Adapter-specific keys may also be passed in this configuration parameter.
Example 69. Example: Using the SimpleDB adapter
<?php
$adapterClass = 'Zend_Cloud_DocumentService_Adapter_SimpleDb';
$documents = Zend_Cloud_DocumentService_Factory::getAdapter(array(
Zend_Cloud_DocumentService_Factory::DOCUMENT_ADAPTER_KEY => $adapterClass,
Zend_Cloud_DocumentService_Adapter_SimpleDb::AWS_ACCESS_KEY => $amazonKey,
Zend_Cloud_DocumentService_Adapter_SimpleDb::AWS_SECRET_KEY => $amazonSecret
));




