Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Store\FallbackPropertyOrderProvider Class Reference

PropertyOrderProvider that uses one of two given providers: It first tries the primary provider and, if that has no data, resorts to the secondary provider. More...

+ Inheritance diagram for Wikibase\Lib\Store\FallbackPropertyOrderProvider:
+ Collaboration diagram for Wikibase\Lib\Store\FallbackPropertyOrderProvider:

Public Member Functions

 __construct (PropertyOrderProvider $primaryProvider, PropertyOrderProvider $secondaryProvider)
 
 getPropertyOrder ()
 

Private Attributes

 $primaryProvider
 
 $secondaryProvider
 

Detailed Description

PropertyOrderProvider that uses one of two given providers: It first tries the primary provider and, if that has no data, resorts to the secondary provider.

Author
Marius Hoch

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Store\FallbackPropertyOrderProvider::__construct ( PropertyOrderProvider  $primaryProvider,
PropertyOrderProvider  $secondaryProvider 
)

Member Function Documentation

◆ getPropertyOrder()

Wikibase\Lib\Store\FallbackPropertyOrderProvider::getPropertyOrder ( )
See also
PropertyOrderProvider::getPropertyOrder
Returns
int[]|null

Implements Wikibase\Lib\Store\PropertyOrderProvider.

Member Data Documentation

◆ $primaryProvider

Wikibase\Lib\Store\FallbackPropertyOrderProvider::$primaryProvider
private

◆ $secondaryProvider

Wikibase\Lib\Store\FallbackPropertyOrderProvider::$secondaryProvider
private

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