Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
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, LabelDescriptionLookup $labelDescriptionLookup, EntityIdFormatter $entityIdFormatter, 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 ()
 

Public Attributes

const CACHE_TTL_IN_SECONDS = 30
 Max server side caching time in seconds.
 
- Public Attributes inherited from Wikibase\Repo\Specials\SpecialWikibaseQueryPage
const CACHE_TTL_IN_SECONDS = 10
 Max server side caching time in seconds.
 

Protected Member Functions

 formatRow (EntityId $propertyId)
 Formats a row for display.
 
 getResult ( $offset=0, $limit=0)
 
 getSubpagesForPrefixSearch ()
 
- Protected Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibaseQueryPage
 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)
 

Private Member Functions

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

Private Attributes

 $dataTypeFactory
 
 $propertyInfoLookup
 
 $labelDescriptionLookup
 
 $dataType
 
 $entityIdFormatter
 
 $titleLookup
 
 $prefetchingTermLookup
 
 $languageFallbackChainFactory
 

Additional Inherited Members

- Protected Attributes inherited from Wikibase\Repo\Specials\SpecialWikibaseQueryPage
 $offset = 0
 
 $limit = 0
 
 $numRows
 
- Protected Attributes inherited from Wikibase\Repo\Specials\SpecialWikibasePage
 $stringNormalizer
 

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,
LabelDescriptionLookup  $labelDescriptionLookup,
EntityIdFormatter  $entityIdFormatter,
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
PropertyId$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
PropertyId[] A sorted array mapping numeric id to its PropertyId

◆ 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
PropertyId[]

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

◆ $entityIdFormatter

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

◆ $labelDescriptionLookup

Wikibase\Repo\Specials\SpecialListProperties::$labelDescriptionLookup
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

Max server side caching time in seconds.


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