Moodle  2.2.1
http://www.collinsharper.com
Zend_Service_WindowsAzure_Storage_Batch Class Reference

Public Member Functions

 __construct (Zend_Service_WindowsAzure_Storage_BatchStorageAbstract $storageClient=null, $baseUrl= '')
 getBaseUrl ()
 enlistOperation ($path= '/', $queryString= '', $httpVerb=Zend_Http_Client::GET, $headers=array(), $forTableStorage=false, $rawData=null)
 commit ()
 rollback ()
 getOperationCount ()
 isSingleSelect ()

Protected Member Functions

 _beginBatch ()
 _clean ()

Protected Attributes

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

Detailed Description

Definition at line 40 of file Batch.php.


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

Definition at line 82 of file Batch.php.

Here is the call graph for this function:


Member Function Documentation

_beginBatch ( ) [protected]

Starts a new batch operation set

Exceptions:
Zend_Service_WindowsAzure_Exception

Definition at line 104 of file Batch.php.

Here is the caller graph for this function:

_clean ( ) [protected]

Cleanup current batch

Definition at line 112 of file Batch.php.

Here is the caller graph for this function:

commit ( )

Commit current batch

Returns:
Zend_Http_Response
Exceptions:
Zend_Service_WindowsAzure_Exception

Definition at line 199 of file Batch.php.

Here is the call graph for this function:

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

Definition at line 131 of file Batch.php.

Here is the call graph for this function:

Get base URL for creating requests

Returns:
string

Definition at line 94 of file Batch.php.

Here is the caller graph for this function:

Get operation count

Returns:
integer

Definition at line 234 of file Batch.php.

Is single select?

Returns:
boolean

Definition at line 244 of file Batch.php.

rollback ( )

Rollback current batch

Definition at line 223 of file Batch.php.

Here is the call graph for this function:


Field Documentation

$_baseUrl [protected]

Definition at line 61 of file Batch.php.

$_forTableStorage = false [protected]

Definition at line 54 of file Batch.php.

$_isSingleSelect = false [protected]

Definition at line 75 of file Batch.php.

$_operations = array() [protected]

Definition at line 68 of file Batch.php.

$_storageClient = null [protected]

Definition at line 47 of file Batch.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations