Moodle  2.2.1
http://www.collinsharper.com
Zend_Service_WindowsAzure_Storage_Table Class Reference
Inheritance diagram for Zend_Service_WindowsAzure_Storage_Table:
Collaboration diagram for Zend_Service_WindowsAzure_Storage_Table:

Public Member Functions

 __construct ($host=Zend_Service_WindowsAzure_Storage::URL_DEV_TABLE, $accountName=Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_ACCOUNT, $accountKey=Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_KEY, $usePathStyleUri=false, Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy=null)
 tableExists ($tableName= '')
 listTables ($nextTableName= '')
 createTable ($tableName= '')
 deleteTable ($tableName= '')
 insertEntity ($tableName= '', Zend_Service_WindowsAzure_Storage_TableEntity $entity=null)
 deleteEntity ($tableName= '', Zend_Service_WindowsAzure_Storage_TableEntity $entity=null, $verifyEtag=false)
 retrieveEntityById ($tableName= '', $partitionKey= '', $rowKey= '', $entityClass= 'Zend_Service_WindowsAzure_Storage_DynamicTableEntity')
 select ()
 retrieveEntities ($tableName= '', $filter= '', $entityClass= 'Zend_Service_WindowsAzure_Storage_DynamicTableEntity', $nextPartitionKey=null, $nextRowKey=null)
 updateEntity ($tableName= '', Zend_Service_WindowsAzure_Storage_TableEntity $entity=null, $verifyEtag=false)
 mergeEntity ($tableName= '', Zend_Service_WindowsAzure_Storage_TableEntity $entity=null, $verifyEtag=false, $properties=array())

Protected Member Functions

 _getErrorMessage (Zend_Http_Response $response, $alternativeError= 'Unknown error.')
 _changeEntity ($httpVerb=Zend_Http_Client::PUT, $tableName= '', Zend_Service_WindowsAzure_Storage_TableEntity $entity=null, $verifyEtag=false)
 _rfcDate ()
 _fillTemplate ($templateText, $variables=array())
 _generateAzureRepresentation (Zend_Service_WindowsAzure_Storage_TableEntity $entity=null)

Detailed Description

Definition at line 96 of file Table.php.


Constructor & Destructor Documentation

Creates a new Zend_Service_WindowsAzure_Storage_Table instance

Parameters:
string$hostStorage host name
string$accountNameAccount name for Windows Azure
string$accountKeyAccount key for Windows Azure
boolean$usePathStyleUriUse path-style URI's
Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract$retryPolicyRetry policy to use when making requests

Reimplemented from Zend_Service_WindowsAzure_Storage.

Definition at line 108 of file Table.php.


Member Function Documentation

_changeEntity ( httpVerb = Zend_Http_Client::PUT,
tableName = '',
Zend_Service_WindowsAzure_Storage_TableEntity entity = null,
verifyEtag = false 
) [protected]

Update entity / merge entity

Parameters:
string$httpVerbHTTP verb to use (PUT = update, MERGE = merge)
string$tableNameTable name
Zend_Service_WindowsAzure_Storage_TableEntity$entityEntity to update
boolean$verifyEtagVerify etag of the entity (used for concurrency)
Exceptions:
Zend_Service_WindowsAzure_Exception

Definition at line 687 of file Table.php.

_fillTemplate ( templateText,
variables = array() 
) [protected]

Fill text template with variables from key/value array

Parameters:
string$templateTextTemplate text
array$variablesArray containing key/value pairs
Returns:
string

Definition at line 772 of file Table.php.

Here is the caller graph for this function:

Generate Azure representation from entity (creates atompub markup from properties)

Parameters:
Zend_Service_WindowsAzure_Storage_TableEntity$entity
Returns:
string

Definition at line 786 of file Table.php.

_getErrorMessage ( Zend_Http_Response response,
alternativeError = 'Unknown error.' 
) [protected]

Get error message from Zend_Http_Response

Parameters:
Zend_Http_Response$responseRepsonse
string$alternativeErrorAlternative error message
Returns:
string

Definition at line 668 of file Table.php.

Here is the caller graph for this function:

_rfcDate ( ) [protected]

Generate RFC 1123 compliant date string

Returns:
string

Definition at line 760 of file Table.php.

createTable ( tableName = '')

Create table

Parameters:
string$tableNameTable name
Returns:
Zend_Service_WindowsAzure_Storage_TableInstance
Exceptions:
Zend_Service_WindowsAzure_Exception

Definition at line 206 of file Table.php.

Here is the call graph for this function:

deleteEntity ( tableName = '',
Zend_Service_WindowsAzure_Storage_TableEntity entity = null,
verifyEtag = false 
)

Delete entity from table

Parameters:
string$tableNameTable name
Zend_Service_WindowsAzure_Storage_TableEntity$entityEntity to delete
boolean$verifyEtagVerify etag of the entity (used for concurrency)
Exceptions:
Zend_Service_WindowsAzure_Exception

Definition at line 365 of file Table.php.

deleteTable ( tableName = '')

Delete table

Parameters:
string$tableNameTable name
Exceptions:
Zend_Service_WindowsAzure_Exception

Definition at line 270 of file Table.php.

Here is the call graph for this function:

insertEntity ( tableName = '',
Zend_Service_WindowsAzure_Storage_TableEntity entity = null 
)

Insert entity into table

Parameters:
string$tableNameTable name
Zend_Service_WindowsAzure_Storage_TableEntity$entityEntity to insert
Returns:
Zend_Service_WindowsAzure_Storage_TableEntity
Exceptions:
Zend_Service_WindowsAzure_Exception

Definition at line 295 of file Table.php.

listTables ( nextTableName = '')

List tables

Parameters:
string$nextTableNameNext table name, used for listing tables when total amount of tables is > 1000.
Returns:
array
Exceptions:
Zend_Service_WindowsAzure_Exception

Definition at line 149 of file Table.php.

Here is the call graph for this function:

Here is the caller graph for this function:

mergeEntity ( tableName = '',
Zend_Service_WindowsAzure_Storage_TableEntity entity = null,
verifyEtag = false,
properties = array() 
)

Update entity by adding or updating properties

Parameters:
string$tableNameTable name
Zend_Service_WindowsAzure_Storage_TableEntity$entityEntity to update
boolean$verifyEtagVerify etag of the entity (used for concurrency)
array$propertiesProperties to merge. All properties will be used when omitted.
Exceptions:
Zend_Service_WindowsAzure_Exception

Definition at line 640 of file Table.php.

retrieveEntities ( tableName = '',
filter = '',
entityClass = 'Zend_Service_WindowsAzure_Storage_DynamicTableEntity',
nextPartitionKey = null,
nextRowKey = null 
)

Retrieve entities from table

Parameters:
string$tableName,|Zend_Service_WindowsAzure_Storage_TableEntityQueryTable name -or- Zend_Service_WindowsAzure_Storage_TableEntityQuery instance
string$filterFilter condition (not applied when $tableName is a Zend_Service_WindowsAzure_Storage_TableEntityQuery instance)
string$entityClassEntity class name
string$nextPartitionKeyNext partition key, used for listing entities when total amount of entities is > 1000.
string$nextRowKeyNext row key, used for listing entities when total amount of entities is > 1000.
Returns:
array Array of Zend_Service_WindowsAzure_Storage_TableEntity
Exceptions:
Zend_Service_WindowsAzure_Exception

Definition at line 476 of file Table.php.

retrieveEntityById ( tableName = '',
partitionKey = '',
rowKey = '',
entityClass = 'Zend_Service_WindowsAzure_Storage_DynamicTableEntity' 
)

Retrieve entity from table, by id

Parameters:
string$tableNameTable name
string$partitionKeyPartition key
string$rowKeyRow key
string$entityClassEntity class name*
Returns:
Zend_Service_WindowsAzure_Storage_TableEntity
Exceptions:
Zend_Service_WindowsAzure_Exception

Definition at line 410 of file Table.php.

tableExists ( tableName = '')

Check if a table exists

Parameters:
string$tableNameTable name
Returns:
boolean

Definition at line 125 of file Table.php.

Here is the call graph for this function:

updateEntity ( tableName = '',
Zend_Service_WindowsAzure_Storage_TableEntity entity = null,
verifyEtag = false 
)

Update entity by replacing it

Parameters:
string$tableNameTable name
Zend_Service_WindowsAzure_Storage_TableEntity$entityEntity to update
boolean$verifyEtagVerify etag of the entity (used for concurrency)
Exceptions:
Zend_Service_WindowsAzure_Exception

Definition at line 626 of file Table.php.


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