Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Specials\SpecialListProperties Class Reference

Special page to list properties by data type. More...

+ Inheritance diagram for Wikibase\Repo\Specials\SpecialListProperties:
+ Collaboration diagram for Wikibase\Repo\Specials\SpecialListProperties:

Public Member Functions

 __construct (DataTypeFactory $dataTypeFactory, PropertyInfoLookup $propertyInfoLookup, LanguageFallbackLabelDescriptionLookupFactory $labelDescriptionLookupFactory, EntityIdFormatterFactory $entityIdFormatterFactory, EntityTitleLookup $titleLookup, PrefetchingTermLookup $prefetchingTermLookup, LanguageFallbackChainFactory $languageFallbackChainFactory)
 
 execute ( $subPage)
 
- Public Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibaseQueryPage
 __construct ( $name='', $restriction='', $listed=true)
 
- Public Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibasePage
 getDescription ()
 
 setHeaders ()
 

Protected Member Functions

 formatRow (EntityId $propertyId)
 Formats a row for display. More...
 
 getResult ( $offset=0, $limit=0)
 
 getSubpagesForPrefixSearch ()
 
- Protected Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibaseQueryPage
 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 = 30
 Max server side caching time in seconds. More...
 
- Protected Attributes inherited from Wikibase\Repo\Specials\SpecialWikibaseQueryPage
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 Member Functions

 prepareArguments ( $subPage)
 Prepares the arguments. More...
 
 showForm ()
 
 getOrderedProperties (array $propertyInfo)
 
 getPropertyInfo ()
 

Private Attributes

 $dataTypeFactory
 
 $propertyInfoLookup
 
 $dataType
 
 $titleLookup
 
 $prefetchingTermLookup
 
 $languageFallbackChainFactory
 
 $labelDescriptionLookupFactory
 
 $entityIdFormatterFactory
 

Detailed Description

Special page to list properties by data type.

Author
Bene* < benes.nosp@m.tar..nosp@m.wikim.nosp@m.edia.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
Addshore

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Specials\SpecialListProperties::__construct ( DataTypeFactory  $dataTypeFactory,
PropertyInfoLookup  $propertyInfoLookup,
LanguageFallbackLabelDescriptionLookupFactory  $labelDescriptionLookupFactory,
EntityIdFormatterFactory  $entityIdFormatterFactory,
EntityTitleLookup  $titleLookup,
PrefetchingTermLookup  $prefetchingTermLookup,
LanguageFallbackChainFactory  $languageFallbackChainFactory 
)

Member Function Documentation

◆ execute()

Wikibase\Repo\Specials\SpecialListProperties::execute (   $subPage)
See also
SpecialWikibasePage::execute
Parameters
string | null$subPage

Reimplemented from Wikibase\Repo\Specials\SpecialWikibaseQueryPage.

◆ formatRow()

Wikibase\Repo\Specials\SpecialListProperties::formatRow ( EntityId  $propertyId)
protected

Formats a row for display.

Parameters
NumericPropertyId$propertyId
Returns
string PhanParamSignatureMismatch Uses intersection types

Reimplemented from Wikibase\Repo\Specials\SpecialWikibaseQueryPage.

◆ getOrderedProperties()

Wikibase\Repo\Specials\SpecialListProperties::getOrderedProperties ( array  $propertyInfo)
private
Parameters
array[]$propertyInfo
Returns
NumericPropertyId[] A sorted array mapping numeric id to its NumericPropertyId

◆ getPropertyInfo()

Wikibase\Repo\Specials\SpecialListProperties::getPropertyInfo ( )
private
Returns
array[] An associative array mapping property IDs to info arrays.

◆ getResult()

Wikibase\Repo\Specials\SpecialListProperties::getResult (   $offset = 0,
  $limit = 0 
)
protected
Parameters
integer$offsetStart to include at number of entries from the start title
integer$limitStop at number of entries after start of inclusion
Returns
NumericPropertyId[]

Reimplemented from Wikibase\Repo\Specials\SpecialWikibaseQueryPage.

◆ getSubpagesForPrefixSearch()

Wikibase\Repo\Specials\SpecialListProperties::getSubpagesForPrefixSearch ( )
protected

◆ prepareArguments()

Wikibase\Repo\Specials\SpecialListProperties::prepareArguments (   $subPage)
private

Prepares the arguments.

Parameters
string | null$subPage

◆ showForm()

Wikibase\Repo\Specials\SpecialListProperties::showForm ( )
private

Member Data Documentation

◆ $dataType

Wikibase\Repo\Specials\SpecialListProperties::$dataType
private

◆ $dataTypeFactory

Wikibase\Repo\Specials\SpecialListProperties::$dataTypeFactory
private

◆ $entityIdFormatterFactory

Wikibase\Repo\Specials\SpecialListProperties::$entityIdFormatterFactory
private

◆ $labelDescriptionLookupFactory

Wikibase\Repo\Specials\SpecialListProperties::$labelDescriptionLookupFactory
private

◆ $languageFallbackChainFactory

Wikibase\Repo\Specials\SpecialListProperties::$languageFallbackChainFactory
private

◆ $prefetchingTermLookup

Wikibase\Repo\Specials\SpecialListProperties::$prefetchingTermLookup
private

◆ $propertyInfoLookup

Wikibase\Repo\Specials\SpecialListProperties::$propertyInfoLookup
private

◆ $titleLookup

Wikibase\Repo\Specials\SpecialListProperties::$titleLookup
private

◆ CACHE_TTL_IN_SECONDS

const Wikibase\Repo\Specials\SpecialListProperties::CACHE_TTL_IN_SECONDS = 30
protected

Max server side caching time in seconds.


The documentation for this class was generated from the following file: