Zend Framework
1.12
|
Public Member Functions | |
select ($select) | |
SELECT clause (fields to be selected) | |
from ($from) | |
FROM clause (table name) | |
where ($where, $value=null, $op= 'and') | |
WHERE clause (conditions to be used) | |
whereId ($value) | |
WHERE clause for item ID. | |
limit ($limit) | |
LIMIT clause (how many rows ot return) | |
order ($sort, $direction= 'asc') | |
ORDER BY clause (sorting) | |
assemble () | |
Assemble the query into a format the adapter can utilize. | |
assemble | ( | ) |
Assemble the query into a format the adapter can utilize.
Implemented in Zend_Cloud_DocumentService_Query, and Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query.
from | ( | $from | ) |
FROM clause (table name)
string | $from |
Implemented in Zend_Cloud_DocumentService_Query, and Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query.
limit | ( | $limit | ) |
LIMIT clause (how many rows ot return)
int | $limit |
Implemented in Zend_Cloud_DocumentService_Query, and Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query.
order | ( | $sort, | |
$direction = 'asc' |
|||
) |
ORDER BY clause (sorting)
string | $sort | Column to sort by |
string | $direction | Direction - asc/desc |
Implemented in Zend_Cloud_DocumentService_Query, and Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query.
select | ( | $select | ) |
SELECT clause (fields to be selected)
string | $select |
Implemented in Zend_Cloud_DocumentService_Query, and Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query.
where | ( | $where, | |
$value = null , |
|||
$op = 'and' |
|||
) |
WHERE clause (conditions to be used)
string | $where | |
mixed | $value | Value or array of values to be inserted instead of ? |
string | $op | Operation to use to join where clauses (AND/OR) |
Implemented in Zend_Cloud_DocumentService_Query, and Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query.
whereId | ( | $value | ) |
WHERE clause for item ID.
This one should be used when fetching specific rows since some adapters have special syntax for primary keys
mixed | $value | Row ID for the document |
Implemented in Zend_Cloud_DocumentService_Query, and Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query.