Turn any of the acceptable query shorthands into a full Horde_Rdo_Query object. If you pass an existing Horde_Rdo_Query object in, it will be cloned before it's returned so that it can be safely modified.
-
mixed
$query: The query to convert to an object.
-
Horde_Rdo_Mapper
$mapper: The Mapper object governing this query.
-
array
$fields: Additional Fields to load with this query.
-
$fieldPrefix
void
addRelationship
( $relationship, $args)
void
addTest
( $field, $test, $value)
void
combineWith
(string $conjunction)
-
string
$conjunction: SQL conjunction such as "AND", "OR".
Restrict the query to a subset of the results.
void
limit
(integer $limit, [integer $offset = null])
-
integer
$limit: Number of items to fetch.
-
integer
$offset: Offset to start fetching at.
-
array
$fields: The fields to load with this query.
-
$fieldPrefix
Add a sorting rule.
void
sortBy
(string $field, [constant $direction = Horde_Rdo::SORT_ASC])
-
string
$field: The field to sort by.
-
constant
$direction: Sort ascending (Horde_Rdo::SORT_ASC) or descending (Horde_Rdo::SORT_DESC).
Take a query array and replace @field@ placeholders with values that will match in the load query.
Callback for array_walk to prefix all elements of an array with a given prefix.
void
_prefix
( &$fieldName, $key, $prefix)
Accessor for any fields that we want some logic around.
void
__get
(string $key)