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) : void
Constructor
Parameters
Name | Type | Description |
---|---|---|
$select | null | \Zend_Service_WindowsAzure_Storage_TableEntityQuery | Table select object |
assemble() : \Zend_Service_WindowsAzure_Storage_TableEntityQuery
Assemble query
Simply return the WindowsAzure table entity query object
ReturnsType | Description |
---|---|
\Zend_Service_WindowsAzure_Storage_TableEntityQuery |
from(string $from) : \Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
FROM clause (table name)
Parameters
Returns
Name | Type | Description |
---|---|---|
$from | string |
Type | Description |
---|---|
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query |
getAzureSelect() : \Zend_Service_WindowsAzure_Storage_TableEntityQuery
Get Azure select query
Returns
Type | Description |
---|---|
\Zend_Service_WindowsAzure_Storage_TableEntityQuery |
limit(int $limit) : \Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
LIMIT 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_Query
ORDER 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_Query
SELECT clause (fields to be selected)
Does nothing for Azure.
ParametersName | 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_Query
WHERE 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_Query
WHERE clause for item ID
This one should be used when fetching specific rows since some adapters
have special syntax for primary keys
ParametersName | Type | Description |
---|---|---|
$value | array | Row ID for the document (PartitionKey, RowKey) |
Type | Description |
---|---|
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query |