|
| $msgFormatter |
|
| $linker = null |
|
| $selectOptions = [] |
|
| $useSerchForm = false |
|
An abstract query page base class that supports array-based data retrieval instead of the SQL-based access used by MW.
GNU GPL v2+
- Since
- ??
- Author
- Markus Krötzsch Abstract base class for SMW's variant of the MW QueryPage. Subclasses must implement getResults() and formatResult(), as well as some other standard functions of QueryPage.
◆ doQuery()
SMW\QueryPage::doQuery |
( |
|
$offset = false , |
|
|
|
$limit = false , |
|
|
|
$property = false |
|
) |
| |
This is the actual workhorse. It does everything needed to make a real, honest-to-gosh query page. Alas, we need to overwrite the whole beast since we do not assume an SQL-based storage backend.
- Parameters
-
$offset | database query offset |
$limit | database query limit |
$property | database string query |
◆ getLinker()
SMW\QueryPage::getLinker |
( |
| ) |
|
Returns a Linker object
- Since
- 1.9
- Returns
- Linker
◆ getMessageFormatter()
SMW\QueryPage::getMessageFormatter |
( |
| ) |
|
◆ getResults()
SMW\QueryPage::getResults |
( |
|
$requestoptions | ) |
|
|
abstract |
Implemented by subclasses to provide concrete functions.
◆ getSearchForm()
SMW\QueryPage::getSearchForm |
( |
|
$property = '' , |
|
|
|
$cacheDate = '' , |
|
|
|
$propertySearch = true , |
|
|
|
$filter = '' |
|
) |
| |
Generates a search form
- Since
- 1.9
- Parameters
-
- Returns
- string
◆ linkParameters()
SMW\QueryPage::linkParameters |
( |
| ) |
|
◆ recache()
SMW\QueryPage::recache |
( |
|
$limit, |
|
|
|
$ignoreErrors = true |
|
) |
| |
Clear the cache and save new results
- Todo:
- Implement caching for SMW query pages
TODO
The documentation for this class was generated from the following file: