Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\FederatedProperties\FederatedPropertiesEntitySourceDefinitionsConfigParser Class Reference

A class to initialize default entitySource values for federated properties. More...

Public Member Functions

 __construct (SettingsArray $settings)
 
 initializeDefaults (EntitySourceDefinitions $definitions, EntityTypeDefinitions $entityTypeDefinitions)
 If the source wiki is set to it's default value we can setup the entity sources automatically based on what we know of the setup of www.wikidata.org. More...
 

Private Member Functions

 getLocalEntitySource (array $sources)
 

Private Attributes

 $sourceScriptUrl
 
 $localEntitySourceName
 

Detailed Description

A class to initialize default entitySource values for federated properties.

This is currently only used when the source wiki is set to it's default value.

Author
Tobias Andersson

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\FederatedProperties\FederatedPropertiesEntitySourceDefinitionsConfigParser::__construct ( SettingsArray  $settings)

Member Function Documentation

◆ getLocalEntitySource()

Wikibase\Repo\FederatedProperties\FederatedPropertiesEntitySourceDefinitionsConfigParser::getLocalEntitySource ( array  $sources)
private
Parameters
EntitySource[]$sources
Returns
EntitySource

◆ initializeDefaults()

Wikibase\Repo\FederatedProperties\FederatedPropertiesEntitySourceDefinitionsConfigParser::initializeDefaults ( EntitySourceDefinitions  $definitions,
EntityTypeDefinitions  $entityTypeDefinitions 
)

If the source wiki is set to it's default value we can setup the entity sources automatically based on what we know of the setup of www.wikidata.org.

Parameters
EntitySourceDefinitions$definitions
EntityTypeDefinitions$entityTypeDefinitions
Returns
EntitySourceDefinitions

Member Data Documentation

◆ $localEntitySourceName

Wikibase\Repo\FederatedProperties\FederatedPropertiesEntitySourceDefinitionsConfigParser::$localEntitySourceName
private

◆ $sourceScriptUrl

Wikibase\Repo\FederatedProperties\FederatedPropertiesEntitySourceDefinitionsConfigParser::$sourceScriptUrl
private

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