API Documentation

Service/WindowsAzure/Storage/TableEntityQuery.php

Zend Framework

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-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Service_WindowsAzure  
subpackage
Storage  
version
$Id: TableEntityQuery.php 23775 2011-03-01 17:25:24Z ralph $  

\Zend_Service_WindowsAzure_Storage_TableEntityQuery

category
Zend  
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Service_WindowsAzure  
subpackage
Storage  

Properties

Propertyprotectedstring  $_from= ''

From

Details
Type
string
Propertyprotectedarray  $_orderBy= 'array'

Order by

Default valuearrayDetails
Type
array
Propertyprotectedstring  $_partitionKey= 'null'

Partition key

Default valuenullDetails
Type
string
Propertyprotectedstring  $_rowKey= 'null'

Row key

Default valuenullDetails
Type
string
Propertyprotectedint  $_top= 'null'

Top

Default valuenullDetails
Type
int
Propertyprotectedarray  $_where= 'array'

Where

Default valuearrayDetails
Type
array

Methods

methodpublic__toString( ) : string

__toString overload

Returns
Type Description
string
methodprotected_quoteInto( string $text, string|array $value = null ) : string

Quotes a variable into a condition

Parameters
Name Type Description
$text string

Condition, can contain question mark(s) (?) for parameter insertion.

$value string|array

Value(s) to insert in question mark (?) parameters.

Returns
Type Description
string
methodprotected_replaceOperators( string $text ) : string

Replace operators

Parameters
Name Type Description
$text string
Returns
Type Description
string
methodpublicandWhere( string $condition, string|array $value = null ) : \Zend_Service_WindowsAzure_Storage_TableEntityQuery

Add where clause with AND condition

Parameters
Name Type Description
$condition string

Condition, can contain question mark(s) (?) for parameter insertion.

$value string|array

Value(s) to insert in question mark (?) parameters.

Returns
Type Description
\Zend_Service_WindowsAzure_Storage_TableEntityQuery
methodpublicassembleFrom( boolean $includeParentheses = true ) : string

Assemble from

Parameters
Name Type Description
$includeParentheses boolean

Include parentheses? ()

Returns
Type Description
string
methodpublicassembleQuery( ) : string

Assemble full query

Returns
Type Description
string
methodpublicassembleQueryString( boolean $urlEncode = false ) : string

Assembles the query string

Parameters
Name Type Description
$urlEncode boolean Apply URL encoding to the query string
Returns
Type Description
string
methodpublicencodeQuery( string $query ) : string
static

urlencode a query

Parameters
Name Type Description
$query string Query to encode
Returns
Type Description
string Encoded query
methodpublicfrom( string $name ) : \Zend_Service_WindowsAzure_Storage_TableEntityQuery

From clause

Parameters
Name Type Description
$name string Table name to select entities from
Returns
Type Description
\Zend_Service_WindowsAzure_Storage_TableEntityQuery
methodpublicorWhere( string $condition, string|array $value = null ) : \Zend_Service_WindowsAzure_Storage_TableEntityQuery

Add where clause with OR condition

Parameters
Name Type Description
$condition string

Condition, can contain question mark(s) (?) for parameter insertion.

$value string|array

Value(s) to insert in question mark (?) parameters.

Returns
Type Description
\Zend_Service_WindowsAzure_Storage_TableEntityQuery
methodpublicorderBy( string $column, string $direction = asc ) : \Zend_Service_WindowsAzure_Storage_TableEntityQuery

OrderBy clause

Parameters
Name Type Description
$column string Column to sort by
$direction string

Direction to sort (asc/desc)

Returns
Type Description
\Zend_Service_WindowsAzure_Storage_TableEntityQuery
methodpublictop( int $top = null ) : \Zend_Service_WindowsAzure_Storage_TableEntityQuery

Top clause

Parameters
Name Type Description
$top int Top to fetch
Returns
Type Description
\Zend_Service_WindowsAzure_Storage_TableEntityQuery
methodpublicwhere( string $condition, string|array $value = null, string $cond ) : \Zend_Service_WindowsAzure_Storage_TableEntityQuery

Add where clause

Parameters
Name Type Description
$condition string

Condition, can contain question mark(s) (?) for parameter insertion.

$value string|array

Value(s) to insert in question mark (?) parameters.

$cond string

Condition for the clause (and/or/not)

Returns
Type Description
\Zend_Service_WindowsAzure_Storage_TableEntityQuery
methodpublicwherePartitionKey( string $value = null ) : \Zend_Service_WindowsAzure_Storage_TableEntityQuery

Specify partition key

Parameters
Name Type Description
$value string Partition key to query for
Returns
Type Description
\Zend_Service_WindowsAzure_Storage_TableEntityQuery
methodpublicwhereRowKey( string $value = null ) : \Zend_Service_WindowsAzure_Storage_TableEntityQuery

Specify row key

Parameters
Name Type Description
$value string Row key to query for
Returns
Type Description
\Zend_Service_WindowsAzure_Storage_TableEntityQuery
Documentation was generated by DocBlox 0.13.3.