Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Service_WindowsAzure_Storage_Batch Class Reference

Public Member Functions

 __construct (Zend_Service_WindowsAzure_Storage_BatchStorageAbstract $storageClient=null, $baseUrl= '')
 Creates a new Zend_Service_WindowsAzure_Storage_Batch.
 
 getBaseUrl ()
 Get base URL for creating requests.
 
 enlistOperation ($path= '/', $queryString= '', $httpVerb=Zend_Http_Client::GET, $headers=array(), $forTableStorage=false, $rawData=null)
 Enlist operation in current batch.
 
 commit ()
 Commit current batch.
 
 rollback ()
 Rollback current batch.
 
 getOperationCount ()
 Get operation count.
 
 isSingleSelect ()
 Is single select?
 

Protected Member Functions

 _beginBatch ()
 Starts a new batch operation set.
 
 _clean ()
 Cleanup current batch.
 

Protected Attributes

 $_storageClient = null
 
 $_forTableStorage = false
 
 $_baseUrl
 
 $_operations = array()
 
 $_isSingleSelect = false
 

Constructor & Destructor Documentation

__construct ( Zend_Service_WindowsAzure_Storage_BatchStorageAbstract  $storageClient = null,
  $baseUrl = '' 
)

Creates a new Zend_Service_WindowsAzure_Storage_Batch.

Parameters
Zend_Service_WindowsAzure_Storage_BatchStorageAbstract$storageClientStorage client the batch is defined on

Member Function Documentation

_beginBatch ( )
protected

Starts a new batch operation set.

Exceptions
Zend_Service_WindowsAzure_Exception
_clean ( )
protected

Cleanup current batch.

commit ( )

Commit current batch.

Returns
Zend_Http_Response
Exceptions
Zend_Service_WindowsAzure_Exception
enlistOperation (   $path = '/',
  $queryString = '',
  $httpVerb = Zend_Http_Client::GET,
  $headers = array(),
  $forTableStorage = false,
  $rawData = null 
)

Enlist operation in current batch.

Parameters
string$pathPath
string$queryStringQuery string
string$httpVerbHTTP verb the request will use
array$headersx-ms headers to add
boolean$forTableStorageIs the request for table storage?
mixed$rawDataOptional RAW HTTP data to be sent over the wire
Exceptions
Zend_Service_WindowsAzure_Exception
getBaseUrl ( )

Get base URL for creating requests.

Returns
string
getOperationCount ( )

Get operation count.

Returns
integer
isSingleSelect ( )

Is single select?

Returns
boolean
rollback ( )

Rollback current batch.

Member Data Documentation

$_baseUrl
protected
$_forTableStorage = false
protected
$_isSingleSelect = false
protected
$_operations = array()
protected
$_storageClient = null
protected