Query
class Query extends BaseQuery
Class Query
Properties
$subQuery | from BaseQuery | ||
$operation | |||
$_query |
Methods
Query Class to initalize your Query
To exclude the fields from the result set
To project the fields in the result set
To include reference(s) of other content type in entries
To sort the entries in ascending order of the specified field
To sort the entries in descending order of the specified field
To include fallback content if specified locale content is not publish.
This method includes the content type UIDs of the referenced entries returned in the response.
Query the field value from the given set of values
Query the field value other than the given set of values
Query the field which has exact value as specified
Query the field which has less value than specified one
Query the field which has less or equal value than specified one
Query the field which has greater value than specified one
Query the field which has greater or equal value than specified one
Query the field which has not equal to value than specified one
Add Query is used to add the raw/array query to filter the entries
Get all entries based on the specified subquery
Details
at line 43
__construct(string $data = '', string $type = '')
Query Class to initalize your Query
in
BaseQuery at line 76
JSON
toJSON()
To transform the Result object to server response content
in
BaseQuery at line 100
Query
except(string $level = 'BASE', array $field_uids = array())
To exclude the fields from the result set
in
BaseQuery at line 132
Query|Entry
only(string $level = 'BASE', array $field_uids = array())
To project the fields in the result set
in
BaseQuery at line 166
Query
includeReference($field_uids = array())
To include reference(s) of other content type in entries
in
BaseQuery at line 195
Query
search($search = '')
deprecated
deprecated
To search the given string in the entries
in
BaseQuery at line 227
Query
regex()
To perform the regular expression test on the specified field
in
BaseQuery at line 256
Query
logicalAND()
Logical AND queries are pushed
in
BaseQuery at line 283
Query
logicalOR()
Logical OR queries are pushed
in
BaseQuery at line 307
Query
ascending($field_uid = '')
To sort the entries in ascending order of the specified field
in
BaseQuery at line 331
Query
descending($field_uid = '')
To sort the entries in descending order of the specified field
in
BaseQuery at line 356
Query
notExists($field_uid = '')
To check field doesn't exists
in
BaseQuery at line 382
Query
exists($field_uid = '')
To check field exists
in
BaseQuery at line 405
Query
includeFallback()
To include fallback content if specified locale content is not publish.
in
BaseQuery at line 427
Query
includeBranch()
To include branch of publish content.
in
BaseQuery at line 452
Query
includeSchema()
deprecated
deprecated
To include schema along with entries
in
BaseQuery at line 475
Query
includeReferenceContentTypeUID()
This method includes the content type UIDs of the referenced entries returned in the response.
in
BaseQuery at line 496
Query
includeContentType()
To include content_type along with entries
in
BaseQuery at line 517
Query
includeEmbeddedItems()
To include Embedded Items along with entries
in
BaseQuery at line 539
Query
includeCount()
To include the count of entries based on the results
in
BaseQuery at line 560
Query
count()
To get only count result
in
BaseQuery at line 582
Query
includeOwner()
To include the owner of entries based on the results
in
BaseQuery at line 606
Query
addParam(string $key = '', string $value = '')
To add query parameter in query
in
BaseQuery at line 630
Query
language($lang = '')
To set the language code in the query
in
BaseQuery at line 654
Query
skip(int $skip = 0)
Skip the specified number of entries from result set
in
BaseQuery at line 677
Query
tags(array $tags = array())
Result set entries should have tags specified
in
BaseQuery at line 705
Query
limit(int $limit = '')
Limit the specified number of entries from result set
in
BaseQuery at line 739
Query
containedIn(string $field = '', array $value = array())
Query the field value from the given set of values
in
BaseQuery at line 775
Query
notContainedIn(string $field = '', array $value = array())
Query the field value other than the given set of values
in
BaseQuery at line 806
Query
where(string $key = '', string $value = '')
Query the field which has exact value as specified
in
BaseQuery at line 829
Query
lessThan(string $field = '', string $value = '')
Query the field which has less value than specified one
in
BaseQuery at line 856
Query
lessThanEqualTo(string $field = '', string $value = '')
Query the field which has less or equal value than specified one
in
BaseQuery at line 883
Query
greaterThan(string $field = '', string $value = '')
Query the field which has greater value than specified one
in
BaseQuery at line 910
Query
greaterThanEqualTo(string $field = '', string $value = '')
Query the field which has greater or equal value than specified one
in
BaseQuery at line 937
Query
notEqualTo(string $field = '', string $value = '')
Query the field which has not equal to value than specified one
in
BaseQuery at line 962
Query
addQuery(array $_query = array())
Add Query is used to add the raw/array query to filter the entries
in
BaseQuery at line 982
query
getQuery()
Get the raw/array query from the current instance of Query/Entry
at line 55
Request
find()
Get all entries based on the specified subquery
at line 73
Request
findOne()
deprecated
deprecated
Get single entry based on the specified subquery