Zend Framework
1.12
|
Public Member Functions | |
createCollection ($name, $options=null) | |
Create collection. | |
deleteCollection ($name, $options=null) | |
Delete collection. | |
listCollections ($options=null) | |
List collections. | |
listDocuments ($collectionName, array $options=null) | |
List all documents in a collection. | |
insertDocument ($collectionName, $document, $options=null) | |
Insert document. | |
replaceDocument ($collectionName, $document, $options=null) | |
Replace document The new document replaces the existing document with the same ID. | |
updateDocument ($collectionName, $documentID, $fieldset=null, $options=null) | |
Update document The fields of the existing documents will be updated. | |
deleteDocument ($collectionName, $documentID, $options=null) | |
Delete document. | |
fetchDocument ($collectionName, $documentID, $options=null) | |
Fetch single document by ID. | |
query ($collectionName, $query, $options=null) | |
Query for documents stored in the document service. | |
select ($fields=null) | |
Create query statement. | |
getClient () | |
Get the concrete service client. | |
Public Attributes | |
const | HTTP_ADAPTER = 'http_adapter' |
createCollection | ( | $name, | |
$options = null |
|||
) |
Create collection.
string | $name | |
array | $options |
Implemented in Zend_Cloud_DocumentService_Adapter_WindowsAzure, and Zend_Cloud_DocumentService_Adapter_SimpleDb.
deleteCollection | ( | $name, | |
$options = null |
|||
) |
Delete collection.
string | $name | |
array | $options |
Implemented in Zend_Cloud_DocumentService_Adapter_WindowsAzure, and Zend_Cloud_DocumentService_Adapter_SimpleDb.
deleteDocument | ( | $collectionName, | |
$documentID, | |||
$options = null |
|||
) |
Delete document.
string | $collectionName | Collection name |
mixed | $documentID | Document ID, adapter-dependent |
array | $options |
Implemented in Zend_Cloud_DocumentService_Adapter_WindowsAzure, and Zend_Cloud_DocumentService_Adapter_SimpleDb.
fetchDocument | ( | $collectionName, | |
$documentID, | |||
$options = null |
|||
) |
Fetch single document by ID.
Will return false if the document does not exist
string | $collectionName | Collection name |
mixed | $documentID | Document ID, adapter-dependent |
array | $options |
Implemented in Zend_Cloud_DocumentService_Adapter_WindowsAzure, and Zend_Cloud_DocumentService_Adapter_SimpleDb.
getClient | ( | ) |
Get the concrete service client.
Implemented in Zend_Cloud_DocumentService_Adapter_WindowsAzure, and Zend_Cloud_DocumentService_Adapter_SimpleDb.
insertDocument | ( | $collectionName, | |
$document, | |||
$options = null |
|||
) |
Insert document.
string | $collectionName | Collection name |
Zend_Cloud_DocumentService_Document | $document | Document to insert |
array | $options |
Implemented in Zend_Cloud_DocumentService_Adapter_WindowsAzure, and Zend_Cloud_DocumentService_Adapter_SimpleDb.
listCollections | ( | $options = null | ) |
List collections.
array | $options |
Implemented in Zend_Cloud_DocumentService_Adapter_WindowsAzure, and Zend_Cloud_DocumentService_Adapter_SimpleDb.
listDocuments | ( | $collectionName, | |
array | $options = null |
||
) |
List all documents in a collection.
string | $collectionName | |
null | array | $options |
Implemented in Zend_Cloud_DocumentService_Adapter_WindowsAzure, and Zend_Cloud_DocumentService_Adapter_SimpleDb.
query | ( | $collectionName, | |
$query, | |||
$options = null |
|||
) |
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.
string | $collectionName | Collection name |
string | $query | |
array | $options |
Implemented in Zend_Cloud_DocumentService_Adapter_WindowsAzure, and Zend_Cloud_DocumentService_Adapter_SimpleDb.
replaceDocument | ( | $collectionName, | |
$document, | |||
$options = null |
|||
) |
Replace document The new document replaces the existing document with the same ID.
string | $collectionName | Collection name |
Zend_Cloud_DocumentService_Document | $document | |
array | $options |
Implemented in Zend_Cloud_DocumentService_Adapter_WindowsAzure, and Zend_Cloud_DocumentService_Adapter_SimpleDb.
select | ( | $fields = null | ) |
Create query statement.
string | $fields |
Implemented in Zend_Cloud_DocumentService_Adapter_WindowsAzure, and Zend_Cloud_DocumentService_Adapter_SimpleDb.
updateDocument | ( | $collectionName, | |
$documentID, | |||
$fieldset = null , |
|||
$options = null |
|||
) |
Update document The fields of the existing documents will be updated.
Fields not specified in the set will be left as-is.
string | $collectionName | |
mixed | Zend_Cloud_DocumentService_Document | $documentID | Document ID, adapter-dependent, or document containing updates |
array | Zend_Cloud_DocumentService_Document | $fieldset | Set of fields to update |
array | $options |
Implemented in Zend_Cloud_DocumentService_Adapter_WindowsAzure, and Zend_Cloud_DocumentService_Adapter_SimpleDb.
const HTTP_ADAPTER = 'http_adapter' |