Cloud/DocumentService/Adapter/WindowsAzure/Query.php

Show: PublicProtectedPrivateinherited
Table of Contents
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
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

>VPropertyprotected\Zend_Service_WindowsAzure_Storage_TableEntityQuery $_azureSelect
Azure concrete query

Methods

methodpublic__construct(null | \Zend_Service_WindowsAzure_Storage_TableEntityQuery $select = null) : void

Constructor

Parameters
NameTypeDescription
$selectnull | \Zend_Service_WindowsAzure_Storage_TableEntityQuery

Table select object

methodpublicassemble() : \Zend_Service_WindowsAzure_Storage_TableEntityQuery

Assemble query

Simply return the WindowsAzure table entity query object
Returns
TypeDescription
\Zend_Service_WindowsAzure_Storage_TableEntityQuery
methodpublicfrom(string $from) : \Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query

FROM clause (table name)

Parameters
NameTypeDescription
$fromstring
Returns
TypeDescription
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
methodpubliclimit(int $limit) : \Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query

LIMIT clause (how many rows to return)

Parameters
NameTypeDescription
$limitint
Returns
TypeDescription
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
methodpublicorder(string $sort, string $direction = 'asc') : \Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query

ORDER BY clause (sorting)

Parameters
NameTypeDescription
$sortstring

Column to sort by

$directionstring

Direction - asc/desc

Returns
TypeDescription
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
Throws
ExceptionDescription
\Zend_Cloud_OperationNotAvailableException
Details
Todo
Azure service doesn't seem to support this yet; emulate?  
methodpublicselect(string $select) : \Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query

SELECT clause (fields to be selected)

Does nothing for Azure.
Parameters
NameTypeDescription
$selectstring
Returns
TypeDescription
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
methodpublicwhere(string $where, mixed $value = null, string $op = 'and') : \Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query

WHERE clause (conditions to be used)

Parameters
NameTypeDescription
$wherestring
$valuemixed

Value or array of values to be inserted instead of ?

$opstring

Operation to use to join where clauses (AND/OR)

Returns
TypeDescription
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
methodpublicwhereId(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
Parameters
NameTypeDescription
$valuearray

Row ID for the document (PartitionKey, RowKey)

Returns
TypeDescription
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
Documentation was generated by phpDocumentor 2.2.0 .