BaseQuery
class BaseQuery
BaseQuery class.
A BaseQuery is used to filter and order collections when making API requests.
Constants
DATE_FORMAT |
ISO8601 but with the seconds forced to 0. |
Properties
static protected string[] | $validOperators | ||
static protected string[] | $validGroups |
Methods
Returns the parameters to execute this query.
The urlencoded query string for this query.
Sets the index of the first result to retrieve. To reset set to NULL.
Set the maximum number of results to retrieve. To reset set to NULL;.
Set the order of the items retrieved by this query.
Set the content type to which results should be limited. Set to NULL to not filter for a content type.
No description
Add a filter condition to this query.
The select operator allows you to choose what to return from an entity.
Filters for all entries that link to an entry.
Filters for all entries that link to an asset.
Details
at line 132
array
getQueryData()
Returns the parameters to execute this query.
at line 151
string
getQueryString()
The urlencoded query string for this query.
at line 165
$this
setSkip(int $skip = \null)
Sets the index of the first result to retrieve. To reset set to NULL.
at line 188
$this
setLimit(int $limit = \null)
Set the maximum number of results to retrieve. To reset set to NULL;.
at line 213
$this
orderBy(string $field, bool $reverse = \false)
Set the order of the items retrieved by this query.
Note that when ordering Entries by fields you must set the content_type URI query parameter to the ID of the Content Type you want to filter by. Can be called multiple times to order by multiple values.
at line 233
$this
setContentType(string $contentType = \null)
Set the content type to which results should be limited. Set to NULL to not filter for a content type.
Only works when querying entries.
at line 247
$this
setMimeTypeGroup(string $group = \null)
at line 272
$this
where(string $field, string|array|DateTimeInterface|Location $value)
Add a filter condition to this query.
at line 314
$this
select(array $select)
The select operator allows you to choose what to return from an entity.
You provide one or multiple JSON paths and the API will return the properties at those paths.
To only request the metadata simply query for 'sys'.
at line 333
$this
linksToEntry(string $entryId)
Filters for all entries that link to an entry.
at line 347
$this
linksToAsset(string $assetId)
Filters for all entries that link to an asset.