Wikibase
MediaWiki Wikibase extension
|
Base for special pages that show the result of a Query. More...
Public Member Functions | |
__construct ( $name='', $restriction='', $listed=true) | |
execute ( $subPage) | |
Public Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibasePage | |
getDescription () | |
setHeaders () | |
Protected Member Functions | |
formatRow (EntityId $entityId) | |
Formats a row for display. More... | |
getResult ( $offset=0, $limit=0) | |
Return the result of the query. More... | |
showQuery (array $query=[], $subPage=false) | |
Output the query result. More... | |
outputResults (array $entityIds, $num, $offset) | |
Format and output report results using the given information plus OutputPage. More... | |
Protected Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibasePage | |
getGroupName () | |
checkBlocked () | |
Checks if user is blocked, and if blocked throws a UserBlocked. More... | |
showErrorHTML ( $error) | |
Protected Attributes | |
const | CACHE_TTL_IN_SECONDS = 10 |
Max server side caching time in seconds. More... | |
$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\SpecialListProperties, and Wikibase\Repo\Specials\SpecialItemsWithoutSitelinks.
|
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\SpecialListProperties, and Wikibase\Repo\Specials\SpecialItemsWithoutSitelinks.
|
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 |
|
protected |
Max server side caching time in seconds.