Zend Framework
1.12
|
Public Member Functions | |
__construct (Zend_Cloud_DocumentService_Adapter_SimpleDb $adapter, $collectionName=null) | |
Constructor. | |
getAdapter () | |
Get adapter. | |
assemble ($collectionName=null) | |
![]() | |
__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 | |
![]() | |
$_clauses = array() | |
Additional Inherited Members | |
![]() | |
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' |
__construct | ( | Zend_Cloud_DocumentService_Adapter_SimpleDb | $adapter, |
$collectionName = null |
|||
) |
Constructor.
Zend_Cloud_DocumentService_Adapter_SimpleDb | $adapter | |
null | string | $collectionName |
|
protected |
Parse a where statement into service-specific language.
string | $where | |
array | $args |
assemble | ( | $collectionName = null | ) |
getAdapter | ( | ) |
Get adapter.
|
protected |