Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Cloud_DocumentService_Adapter_SimpleDb_Query Class Reference

Public Member Functions

 __construct (Zend_Cloud_DocumentService_Adapter_SimpleDb $adapter, $collectionName=null)
 Constructor.
 
 getAdapter ()
 Get adapter.
 
 assemble ($collectionName=null)
 
- Public Member Functions inherited from Zend_Cloud_DocumentService_Query
 __call ($name, $args)
 Generic clause.
 
 select ($select)
 SELECT clause (fields to be selected)
 
 from ($name)
 FROM clause.
 
 where ($cond, $value=null, $op= 'and')
 WHERE query.
 
 whereId ($value)
 Select record or fields by ID.
 
 limit ($limit)
 LIMIT clause (how many items to return)
 
 order ($sort, $direction= 'asc')
 ORDER clause; field or fields to sort by, and direction to sort.
 
 assemble ()
 "Assemble" the query
 
 getClauses ()
 Return query clauses as an array.
 

Protected Member Functions

 _parseWhere ($where, $args)
 Parse a where statement into service-specific language.
 

Protected Attributes

 $_adapter
 
- Protected Attributes inherited from Zend_Cloud_DocumentService_Query
 $_clauses = array()
 

Additional Inherited Members

- Public Attributes inherited from Zend_Cloud_DocumentService_Query
const QUERY_SELECT = 'select'
 Known query types.
 
const QUERY_FROM = 'from'
 
const QUERY_WHERE = 'where'
 
const QUERY_WHEREID = 'whereid'
 
const QUERY_LIMIT = 'limit'
 
const QUERY_ORDER = 'order'
 

Constructor & Destructor Documentation

__construct ( Zend_Cloud_DocumentService_Adapter_SimpleDb  $adapter,
  $collectionName = null 
)

Constructor.

Parameters
Zend_Cloud_DocumentService_Adapter_SimpleDb$adapter
null | string$collectionName
Returns
void

Member Function Documentation

_parseWhere (   $where,
  $args 
)
protected

Parse a where statement into service-specific language.

Todo:
Ensure this fulfills the entire SimpleDB query specification for WHERE
Parameters
string$where
array$args
Returns
string
assemble (   $collectionName = null)
getAdapter ( )

Member Data Documentation

$_adapter
protected