$mapper
$mapper : \Horde_Rdo_Mapper
$mapper : \Horde_Rdo_Mapper
create(mixed $query, \Horde_Rdo_Mapper $mapper = null) : \Horde_Rdo_Query
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. |
The full Horde_Rdo_Query object.
__construct(\Horde_Rdo_Mapper $mapper = null)
Constructor.
\Horde_Rdo_Mapper | $mapper | Rdo mapper base class |
setMapper(\Horde_Rdo_Mapper $mapper) : \Horde_Rdo_Query
\Horde_Rdo_Mapper | $mapper | Rdo mapper base class |
Return the query object for fluent chaining.
distinct(boolean $distinct) : \Horde_Rdo_Query
Makes the query return only distinct (different) values.
boolean | $distinct | Whether to enable a distinct query. |
Returns self for fluent method chaining.
setFields(array $fields, string $fieldPrefix = null) : \Horde_Rdo_Query
Sets the fields to return with the query.
array | $fields | The fields to load with this query. |
string | $fieldPrefix | Prefix all field names with this string. |
Returns self for fluent method chaining.
addFields(array $fields, string $fieldPrefix = null) : \Horde_Rdo_Query
Adds fields to return with the query.
array | $fields | Additional fields to load with this query. |
string | $fieldPrefix | Prefix all field names with this string. |
Returns self for fluent method chaining.
addRelationship(string $relationship, array $args) : \Horde_Rdo_Query
Adds a relationship type to a query.
string | $relationship | The name of the relationship as defined in the mapper. |
array | $args | The parameter array as defined in the mapper:
|
This object.
_fillJoinPlaceholders(\Horde_Rdo_Mapper $m1, \Horde_Rdo_Mapper $m2, array $query) : array
Take a query array and replace @field@ placeholders with values that will match in the load query.
\Horde_Rdo_Mapper | $m1 | Left-hand mapper |
\Horde_Rdo_Mapper | $m2 | Right-hand mapper |
array | $query | The query to process placeholders on. |
The query with placeholders filled in.