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