|
|
|
The Query objects represent a query to be executed at a later time. This is the main way of implementing paging for applications using the media library
|
|
|
|
|
|
|
|
Accessors
|
|
|
|
=========
|
|
|
|
|
|
|
|
A query is represented by the `IQuery` interface which only exposes a few public accessors:
|
|
|
|
* `count()` will count the number of elements returned
|
|
|
|
* `all()` returns all the entities returned by the database, regardless of how much there are.
|
|
|
|
* `items( nbItems, offset )` returns a subset of the results, consisting of `nbItems` items, starting at the provided `offset`
|
|
|
|
|
|
|
|
Construction
|
|
|
|
============
|
|
|
|
|
|
|
|
From the public point of view, the Query objects are read only, and are to be instantiated by the media library itself.
|
|
|
|
|
|
|
|
Limitations
|
|
|
|
===========
|
|
|
|
|
|
|
|
blabla databasehelpers, can't return anything else |
|
|
|
\ No newline at end of file |