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, FallbackLabelDescriptionLookupFactory $labelDescriptionLookupFactory, EntityIdFormatterFactory $entityIdFormatterFactory, EntityTitleLookup $titleLookup)
 
 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.
 
 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)
 

Protected Attributes

const CACHE_TTL_IN_SECONDS = 30
 Max server side caching time in seconds.
 
- Protected Attributes inherited from Wikibase\Repo\Specials\SpecialWikibaseQueryPage
const CACHE_TTL_IN_SECONDS = 10
 Max server side caching time in seconds.
 
 $offset = 0
 
 $limit = 0
 
 $numRows
 
- Protected Attributes inherited from Wikibase\Repo\Specials\SpecialWikibasePage
 $stringNormalizer
 

Private Member Functions

 prepareArguments ( $subPage)
 Prepares the arguments.
 
 showForm ()
 
 getOrderedProperties (array $propertyInfo)
 
 getPropertyInfo ()
 
 initLabelDescriptionLookup (array $entityIds)
 Initialize the label+description lookup, prefetching labels for the given entity IDs.
 
 getLabelDescriptionLookup ()
 Get the label+description lookup, asserting that it has already been initialized.
 

Private Attributes

 $dataTypeFactory
 
 $propertyInfoLookup
 
 $dataType
 
 $titleLookup
 
 $labelDescriptionLookupFactory
 
 $entityIdFormatterFactory
 
 $labelDescriptionLookup
 

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,
FallbackLabelDescriptionLookupFactory  $labelDescriptionLookupFactory,
EntityIdFormatterFactory  $entityIdFormatterFactory,
EntityTitleLookup  $titleLookup 
)

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.

◆ getLabelDescriptionLookup()

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

Get the label+description lookup, asserting that it has already been initialized.

◆ 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
int$offsetStart to include at number of entries from the start title
int$limitStop at number of entries after start of inclusion
Returns
NumericPropertyId[]

Reimplemented from Wikibase\Repo\Specials\SpecialWikibaseQueryPage.

◆ getSubpagesForPrefixSearch()

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

◆ initLabelDescriptionLookup()

Wikibase\Repo\Specials\SpecialListProperties::initLabelDescriptionLookup ( array  $entityIds)
private

Initialize the label+description lookup, prefetching labels for the given entity IDs.

◆ 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

◆ $labelDescriptionLookup

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

◆ $labelDescriptionLookupFactory

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