|
|
|||
fCMSPro Query object is used for building up the query that will be executed on the backend. It can be instantiated by using the getQuery function of the fMaster, fTemplate or fIndex components.
Valid data types to be used in queries are:
| Property |
Description |
|---|---|
| limit | Specifies the number of records to be returned. |
The total number of query records. |
|
Object with sorting information . |
|
Array of objects with filtering information . |
|
Specifies page of the recordset to be retrieved. |
|
| fields | Specifies names of the fields to be retirieved. |
| Method |
Description |
|---|---|
| addFilter | Adds filter. |
Removes all filters. |
|
Sets sorting. |
|
Returns query xml. |
|
Returns query string value. |
|
Defines relations that will be returned. |
|
Adds 'tagged_with' relation filter. |
|
Adds 'related' relation filter. |
|
Return copy of the Query object. |