API Documentation

Zend/Cloud/DocumentService/Adapter/WindowsAzure/Query.php

Show: inherited
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-2012 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
\Zend_Cloud_DocumentService_QueryAdapter
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Todo
Look into preventing a query injection attack.  

Properties

Propertyprotected\Zend_Service_WindowsAzure_Storage_TableEntityQuery  $_azureSelect= ''

Azure concrete query

Methods

methodpublic__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

methodpublicassemble( ) : \Zend_Service_WindowsAzure_Storage_TableEntityQuery

Assemble query

Simply return the WindowsAzure table entity query object

Returns
Type Description
\Zend_Service_WindowsAzure_Storage_TableEntityQuery
methodpublicfrom( string $from ) : \Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query

FROM clause (table name)

Parameters
Name Type Description
$from string
Returns
Type Description
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
methodpublicgetAzureSelect( ) : \Zend_Service_WindowsAzure_Storage_TableEntityQuery

Get Azure select query

methodpubliclimit( int $limit ) : \Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query

LIMIT clause (how many rows to return)

Parameters
Name Type Description
$limit int
Returns
Type Description
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
methodpublicorder( string $sort, string $direction = 'asc' ) : \Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query

ORDER BY clause (sorting)

Parameters
Name Type Description
$sort string

Column to sort by

$direction string

Direction - asc/desc

Returns
Type Description
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
Throws
Exception Description
\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
Name Type Description
$select string
Returns
Type Description
\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
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)

Returns
Type Description
\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
Name Type Description
$value array

Row ID for the document (PartitionKey, RowKey)

Returns
Type Description
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
Documentation was generated by DocBlox 0.15.1.