Cloud/DocumentService/Adapter/WindowsAzure/Query.php
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_Cloud
- Subpackage
- DocumentService
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
Package: Zend_Cloud\DocumentService






Returns


Returns
Class implementing Query adapter for working with Azure queries in a
structured way
- Implements
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Todo
- Look into preventing a query injection attack.
Properties
Methods

__construct(null | \Zend_Service_WindowsAzure_Storage_TableEntityQuery $select = null) : voidConstructor
Parameters
| Name | Type | Description |
|---|---|---|
| $select | null | \Zend_Service_WindowsAzure_Storage_TableEntityQuery | Table select object |

assemble() : \Zend_Service_WindowsAzure_Storage_TableEntityQueryAssemble query
Simply return the WindowsAzure table entity query object
Returns| Type | Description |
|---|---|
| \Zend_Service_WindowsAzure_Storage_TableEntityQuery |

from(string $from) : \Zend_Cloud_DocumentService_Adapter_WindowsAzure_QueryFROM clause (table name)
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $from | string |
| Type | Description |
|---|---|
| \Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query |

getAzureSelect() : \Zend_Service_WindowsAzure_Storage_TableEntityQueryGet Azure select query
Returns
| Type | Description |
|---|---|
| \Zend_Service_WindowsAzure_Storage_TableEntityQuery |

limit(int $limit) : \Zend_Cloud_DocumentService_Adapter_WindowsAzure_QueryLIMIT clause (how many rows to return)
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $limit | int |
| Type | Description |
|---|---|
| \Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query |

order(string $sort, string $direction = 'asc') : \Zend_Cloud_DocumentService_Adapter_WindowsAzure_QueryORDER BY clause (sorting)
Parameters
Returns
Throws
Details
| Name | Type | Description |
|---|---|---|
| $sort | string | Column to sort by |
| $direction | string | Direction - asc/desc |
| Type | Description |
|---|---|
| \Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query |
| Exception | Description |
|---|---|
| \Zend_Cloud_OperationNotAvailableException |
- Todo
- Azure service doesn't seem to support this yet; emulate?

select(string $select) : \Zend_Cloud_DocumentService_Adapter_WindowsAzure_QuerySELECT clause (fields to be selected)
Does nothing for Azure.
Parameters| Name | Type | Description |
|---|---|---|
| $select | string |
| Type | Description |
|---|---|
| \Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query |

where(string $where, mixed $value = null, string $op = 'and') : \Zend_Cloud_DocumentService_Adapter_WindowsAzure_QueryWHERE clause (conditions to be used)
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $where | string | |
| $value | mixed | Value or array of values to be inserted instead of ? |
| $op | string | Operation to use to join where clauses (AND/OR) |
| Type | Description |
|---|---|
| \Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query |

whereId(array $value) : \Zend_Cloud_DocumentService_Adapter_WindowsAzure_QueryWHERE clause for item ID
This one should be used when fetching specific rows since some adapters
have special syntax for primary keys
Parameters| Name | Type | Description |
|---|---|---|
| $value | array | Row ID for the document (PartitionKey, RowKey) |
| Type | Description |
|---|---|
| \Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query |