XQLCollectionTrait
trait XQLCollectionTrait
Methods
Fullfill API Request and return result
Get generic description of collection for webservice API
Returns a closure that adds an AfterLoadListener to filter elements of a reference collection and attach them as expand property to this collection, e.g. articles referencing to user by user_id
Apply XELOS Query Language Object
- [Optional] Apply $filter
- [Optional] Apply $pagination
- [Optional] Populate $expand
- [Optional] Remove fields which are not required by $select
Map internal collection information to fulfill the promised ParameterObject
Details
at line 36
protected XQLCollectionTrait
applyXQLFilter(XQL $XQL, ParameterObject|null $parameterObject = null)
No description
at line 82
protected XQLCollectionTrait
applyXQLPagination(XQL $XQL)
Apply XQL Pagination to current Collection
Return information / stats about applied pagination
at line 215
array
getAPIResult(ParameterObject|null $parameterObject = null, PartitionQuery|null $partitionQuery = null)
Fullfill API Request and return result
at line 26
static ParameterObject
getWebserviceParameterObject()
Get generic description of collection for webservice API
at line 304
static protected Closure
getXQLReferenceClosure(Collection $referenceCollection, string $expandToProperty = null, string $referenceKeyField = null)
Returns a closure that adds an AfterLoadListener to filter elements of a reference collection and attach them as expand property to this collection, e.g. articles referencing to user by user_id
at line 124
final array
getXQLResult(XQL|null $XQL, string|null $partitionColumn = null, bool $hasManyRelation = true)
Apply XELOS Query Language Object
- [Optional] Apply $filter
- [Optional] Apply $pagination
- [Optional] Populate $expand
- [Optional] Remove fields which are not required by $select
at line 293
protected XQLCollectionTrait
populateApiProperties(ParameterObject|null $parameterObject = null)
Map internal collection information to fulfill the promised ParameterObject