Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\Store\PropertyOrderProvider Interface Reference

Interface that contains method for the PropertyOrderProvider. More...

+ Inheritance diagram for Wikibase\Lib\Store\PropertyOrderProvider:

Public Member Functions

 getPropertyOrder ()
 Get order of properties in the form [ $propertyIdSerialization => $ordinalNumber ]. More...
 

Detailed Description

Interface that contains method for the PropertyOrderProvider.

Author
Lucie-Aimée Kaffee

Member Function Documentation

◆ getPropertyOrder()

Wikibase\Lib\Store\PropertyOrderProvider::getPropertyOrder ( )

Get order of properties in the form [ $propertyIdSerialization => $ordinalNumber ].

Returns
null|int[] An associative array mapping property ID strings to ordinal numbers. The order of properties is represented by the ordinal numbers associated with them. The array is not guaranteed to be sorted. Null if no information exists.
Exceptions
PropertyOrderProviderException

Implemented in Wikibase\Lib\Store\WikiTextPropertyOrderProvider, Wikibase\Lib\Store\FallbackPropertyOrderProvider, and Wikibase\Lib\Store\CachingPropertyOrderProvider.


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