|
Wikibase
MediaWiki Wikibase extension
|
Base for special pages that show the result of a Query. More...
Inheritance diagram for Wikibase\Repo\Specials\SpecialWikibaseQueryPage:
Collaboration diagram for Wikibase\Repo\Specials\SpecialWikibaseQueryPage:Public Member Functions | |
| __construct ( $name='', $restriction='', $listed=true) | |
| execute ( $subPage) | |
Public Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibasePage | |
| getDescription () | |
| setHeaders () | |
Public Attributes | |
| const | CACHE_TTL_IN_SECONDS = 10 |
| Max server side caching time in seconds. | |
Protected Member Functions | |
| formatRow (EntityId $entityId) | |
| Formats a row for display. | |
| getResult ( $offset=0, $limit=0) | |
| Return the result of the query. | |
| showQuery (array $query=[], $subPage=false) | |
| Output the query result. | |
| outputResults (array $entityIds, $num, $offset) | |
| Format and output report results using the given information plus OutputPage. | |
Protected Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibasePage | |
| getGroupName () | |
| checkBlocked () | |
| Checks if user is blocked, and if blocked throws a UserBlocked. | |
| showErrorHTML ( $error) | |
Protected Attributes | |
| $offset = 0 | |
| $limit = 0 | |
| $numRows | |
Protected Attributes inherited from Wikibase\Repo\Specials\SpecialWikibasePage | |
| $stringNormalizer | |
Private Attributes | |
| $entityTitleLookup | |
Base for special pages that show the result of a Query.
Rewriting of QueryPage but with abstraction of the storage system and without cache support.
| Wikibase\Repo\Specials\SpecialWikibaseQueryPage::__construct | ( | $name = '', |
|
$restriction = '', |
|||
$listed = true |
|||
| ) |
| string | $name | |
| string | $restriction | |
| bool | $listed |
Reimplemented from Wikibase\Repo\Specials\SpecialWikibasePage.
| Wikibase\Repo\Specials\SpecialWikibaseQueryPage::execute | ( | $subPage | ) |
| string | null | $subPage |
Reimplemented from Wikibase\Repo\Specials\SpecialWikibasePage.
Reimplemented in Wikibase\Repo\Specials\SpecialItemsWithoutSitelinks, and Wikibase\Repo\Specials\SpecialListProperties.
|
protected |
Formats a row for display.
| EntityId | $entityId |
Reimplemented in Wikibase\Repo\Specials\SpecialListProperties.
|
abstractprotected |
Return the result of the query.
| integer | $offset | Start to include at number of entries from the start title |
| integer | $limit | Stop at number of entries after start of inclusion |
Reimplemented in Wikibase\Repo\Specials\SpecialItemsWithoutSitelinks, and Wikibase\Repo\Specials\SpecialListProperties.
|
protected |
Format and output report results using the given information plus OutputPage.
| EntityId[] | $entityIds | |
| integer | $num | number of available result rows |
| integer | $offset | paging offset |
|
protected |
Output the query result.
| array | $query | optional array of URL query parameter strings |
| string | bool | $subPage | Optional param for specifying subpage |
|
private |
|
protected |
|
protected |
|
protected |
| const Wikibase\Repo\Specials\SpecialWikibaseQueryPage::CACHE_TTL_IN_SECONDS = 10 |
Max server side caching time in seconds.