Service/WindowsAzure/Storage/Batch.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Service_WindowsAzure  
Subpackage
Storage  
Version
$Id$  

\Zend_Service_WindowsAzure_Storage_Batch

Package: Zend_Service_WindowsAzure\Storage
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedstring $_baseUrl
Base URL
Details
Type
string
>VPropertyprotectedboolean $_forTableStorage = false
For table storage?
Default valuefalseDetails
Type
boolean
>VPropertyprotectedboolean $_isSingleSelect = false
Does the batch contain a single select?
Default valuefalseDetails
Type
boolean
>VPropertyprotected\unknown_type $_operations = array()
Pending operations
Default valuearray()Details
Type
\unknown_type
>VPropertyprotected\Zend_Service_WindowsAzure_Storage_BatchStorageAbstract $_storageClient = null
Storage client the batch is defined on

Methods

methodpublic__construct(\Zend_Service_WindowsAzure_Storage_BatchStorageAbstract $storageClient = null,  $baseUrl = '') : void

Creates a new Zend_Service_WindowsAzure_Storage_Batch

Parameters
NameTypeDescription
$storageClient\Zend_Service_WindowsAzure_Storage_BatchStorageAbstract

Storage client the batch is defined on

$baseUrl
methodprotected_beginBatch() : void

Starts a new batch operation set

Throws
ExceptionDescription
\Zend_Service_WindowsAzure_Exception
methodprotected_clean() : void

Cleanup current batch

methodpubliccommit() : \Zend_Http_Response

Commit current batch

Returns
TypeDescription
\Zend_Http_Response
Throws
ExceptionDescription
\Zend_Service_WindowsAzure_Exception
methodpublicenlistOperation(string $path = '/', string $queryString = '', string $httpVerb = \Zend_Http_Client::GET, array $headers = array(), boolean $forTableStorage = false, mixed $rawData = null) : void

Enlist operation in current batch

Parameters
NameTypeDescription
$pathstring

Path

$queryStringstring

Query string

$httpVerbstring

HTTP verb the request will use

$headersarray

x-ms headers to add

$forTableStorageboolean

Is the request for table storage?

$rawDatamixed

Optional RAW HTTP data to be sent over the wire

Throws
ExceptionDescription
\Zend_Service_WindowsAzure_Exception
methodpublicgetBaseUrl() : string

Get base URL for creating requests

Returns
TypeDescription
string
methodpublicgetOperationCount() : integer

Get operation count

Returns
TypeDescription
integer
methodpublicisSingleSelect() : boolean

Is single select?

Returns
TypeDescription
boolean
methodpublicrollback() : void

Rollback current batch

Documentation was generated by phpDocumentor 2.2.0 .