Cloud/DocumentService/Adapter/SimpleDb/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-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Cloud
- Subpackage
- DocumentService
\Zend_Cloud_DocumentService_Adapter_SimpleDb_Query
Package: Zend\Cloud\DocumentServiceClass implementing Query adapter for working with SimpleDb queries in a
structured way
Aggregates operations in an array of clauses, where the first element
describes the clause type, and the next element describes the criteria.
- Parent(s)
- \Zend_Cloud_DocumentService_Query
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties
Methods



__call(string $name, mixed $args) : \Zend_Cloud_DocumentService_Query
You can use any clause by doing $query->foo('bar')
but concrete adapters should be able to recognise it
The call will be iterpreted as clause 'foo' with argument 'bar'
ParametersName | Type | Description |
---|
$name | string | Clause/method name
|
---|
$args | mixed | |
---|
Returns


_parseWhere(string $where, array $args) : string
Parse a where statement into service-specific language
ParametersName | Type | Description |
---|
$where | string | |
---|
$args | array | |
---|
ReturnsDetails- Todo
- Ensure this fulfills the entire SimpleDB query specification for WHERE



assemble( $collectionName = null) : string
Assemble the query into a format the adapter can utilize
Simply returns the clauses present.
ParametersName | Type | Description |
---|
$collectionName | | |
---|
ReturnsDetails- string
Name of collection from which to select



where(string $cond, $value = null, string $op = 'and') : \Zend_Cloud_DocumentService_Query
ParametersName | Type | Description |
---|
$cond | string | Condition |
---|
$value | | |
---|
$op | string | relation to other clauses - and/or
|
---|
Returns 


whereId(string | int $value) : \Zend_Cloud_DocumentService_Query
This one should be used when fetching specific rows since some adapters
have special syntax for primary keys
ParametersName | Type | Description |
---|
$value | string | int | Identifier to select by |
---|
Returns