Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct (Store $store, Settings $settings) | |
getCacheInfo () | |
getPageHeader () | |
getName () | |
formatResult ( $skin, $result) | |
getResults ( $requestOptions) | |
Public Member Functions inherited from SMW\QueryPage | |
getResults ( $requestoptions) | |
recache ( $limit, $ignoreErrors=true) | |
isExpensive () | |
isSyndicated () | |
linkParameters () | |
getMessageFormatter () | |
getLinker () | |
getSearchForm ( $property='', $cacheDate='', $propertySearch=true, $filter='') | |
doQuery ( $offset=false, $limit=false, $property=false) | |
Protected Member Functions | |
formatPropertyItem (DIProperty $property, $useCount) | |
Protected Attributes | |
$store | |
$settings | |
Protected Attributes inherited from SMW\QueryPage | |
$msgFormatter | |
$linker = null | |
$selectOptions = [] | |
$useSerchForm = false | |
Query class that provides content for the Special:Properties page
GNU GPL v2+
SMW\PropertiesQueryPage::__construct | ( | Store | $store, |
Settings | $settings | ||
) |
Store | $store | |
Settings | $settings |
|
protected |
Produce a formatted string representation for showing a property and its usage count in the list of used properties.
DIProperty | $property | |
integer | $useCount |
SMW\PropertiesQueryPage::formatResult | ( | $skin, | |
$result | |||
) |
Format a result in the list of results as a string. We expect the result to be an array with one object of type SMWDIProperty (normally) or maybe SMWDIError (if something went wrong), followed by a number (how often the property is used).
Skin | $skin | provided by MediaWiki, not needed here |
mixed | $result |
PropertyNotFoundException | if the result was not of a supported type |
SMW\PropertiesQueryPage::getCacheInfo | ( | ) |
Returns available cache information (takes into account user preferences)
SMW\PropertiesQueryPage::getName | ( | ) |
SMW\PropertiesQueryPage::getPageHeader | ( | ) |
SMW\PropertiesQueryPage::getResults | ( | $requestOptions | ) |
Get the list of results.
SMWRequestOptions | $requestOptions |