[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Service/WindowsAzure/Storage/ -> Table.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 816 lines (30 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Service_WindowsAzure_Storage_Table:: (17 methods):
  __construct()
  tableExists()
  listTables()
  createTable()
  deleteTable()
  insertEntity()
  deleteEntity()
  retrieveEntityById()
  select()
  retrieveEntities()
  updateEntity()
  mergeEntity()
  _getErrorMessage()
  _changeEntity()
  _rfcDate()
  _fillTemplate()
  _generateAzureRepresentation()


Class: Zend_Service_WindowsAzure_Storage_Table  - X-Ref


__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)   X-Ref
Creates a new Zend_Service_WindowsAzure_Storage_Table instance

param: string $host Storage host name
param: string $accountName Account name for Windows Azure
param: string $accountKey Account key for Windows Azure
param: boolean $usePathStyleUri Use path-style URI's
param: Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy Retry policy to use when making requests

tableExists($tableName = '')   X-Ref
Check if a table exists

param: string $tableName Table name
return: boolean

listTables($nextTableName = '')   X-Ref
List tables

param: string $nextTableName Next table name, used for listing tables when total amount of tables is > 1000.
return: array

createTable($tableName = '')   X-Ref
Create table

param: string $tableName Table name
return: Zend_Service_WindowsAzure_Storage_TableInstance

deleteTable($tableName = '')   X-Ref
Delete table

param: string $tableName Table name

insertEntity($tableName = '', Zend_Service_WindowsAzure_Storage_TableEntity $entity = null)   X-Ref
Insert entity into table

param: string                              $tableName   Table name
param: Zend_Service_WindowsAzure_Storage_TableEntity $entity      Entity to insert
return: Zend_Service_WindowsAzure_Storage_TableEntity

deleteEntity($tableName = '', Zend_Service_WindowsAzure_Storage_TableEntity $entity = null, $verifyEtag = false)   X-Ref
Delete entity from table

param: string                              $tableName   Table name
param: Zend_Service_WindowsAzure_Storage_TableEntity $entity      Entity to delete
param: boolean                             $verifyEtag  Verify etag of the entity (used for concurrency)

retrieveEntityById($tableName = '', $partitionKey = '', $rowKey = '', $entityClass = 'Zend_Service_WindowsAzure_Storage_DynamicTableEntity')   X-Ref
Retrieve entity from table, by id

param: string $tableName    Table name
param: string $partitionKey Partition key
param: string $rowKey       Row key
param: string $entityClass  Entity class name*
return: Zend_Service_WindowsAzure_Storage_TableEntity

select()   X-Ref
Create a new Zend_Service_WindowsAzure_Storage_TableEntityQuery

return: Zend_Service_WindowsAzure_Storage_TableEntityQuery

retrieveEntities($tableName = '', $filter = '', $entityClass = 'Zend_Service_WindowsAzure_Storage_DynamicTableEntity', $nextPartitionKey = null, $nextRowKey = null)   X-Ref
Retrieve entities from table

param: string $tableName|Zend_Service_WindowsAzure_Storage_TableEntityQuery    Table name -or- Zend_Service_WindowsAzure_Storage_TableEntityQuery instance
param: string $filter                                                Filter condition (not applied when $tableName is a Zend_Service_WindowsAzure_Storage_TableEntityQuery instance)
param: string $entityClass                                           Entity class name
param: string $nextPartitionKey                                      Next partition key, used for listing entities when total amount of entities is > 1000.
param: string $nextRowKey                                            Next row key, used for listing entities when total amount of entities is > 1000.
return: array Array of Zend_Service_WindowsAzure_Storage_TableEntity

updateEntity($tableName = '', Zend_Service_WindowsAzure_Storage_TableEntity $entity = null, $verifyEtag = false)   X-Ref
Update entity by replacing it

param: string                              $tableName   Table name
param: Zend_Service_WindowsAzure_Storage_TableEntity $entity      Entity to update
param: boolean                             $verifyEtag  Verify etag of the entity (used for concurrency)

mergeEntity($tableName = '', Zend_Service_WindowsAzure_Storage_TableEntity $entity = null, $verifyEtag = false, $properties = array()   X-Ref
Update entity by adding or updating properties

param: string                              $tableName   Table name
param: Zend_Service_WindowsAzure_Storage_TableEntity $entity      Entity to update
param: boolean                             $verifyEtag  Verify etag of the entity (used for concurrency)
param: array                               $properties  Properties to merge. All properties will be used when omitted.

_getErrorMessage(Zend_Http_Response $response, $alternativeError = 'Unknown error.')   X-Ref
Get error message from Zend_Http_Response

param: Zend_Http_Response $response Repsonse
param: string $alternativeError Alternative error message
return: string

_changeEntity($httpVerb = Zend_Http_Client::PUT, $tableName = '', Zend_Service_WindowsAzure_Storage_TableEntity $entity = null, $verifyEtag = false)   X-Ref
Update entity / merge entity

param: string                              $httpVerb    HTTP verb to use (PUT = update, MERGE = merge)
param: string                              $tableName   Table name
param: Zend_Service_WindowsAzure_Storage_TableEntity $entity      Entity to update
param: boolean                             $verifyEtag  Verify etag of the entity (used for concurrency)

_rfcDate()   X-Ref
Generate RFC 1123 compliant date string

return: string

_fillTemplate($templateText, $variables = array()   X-Ref
Fill text template with variables from key/value array

param: string $templateText Template text
param: array $variables Array containing key/value pairs
return: string

_generateAzureRepresentation(Zend_Service_WindowsAzure_Storage_TableEntity $entity = null)   X-Ref
Generate Azure representation from entity (creates atompub markup from properties)

param: Zend_Service_WindowsAzure_Storage_TableEntity $entity
return: string



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1