Wikibase
MediaWiki Wikibase extension
Wikibase\DataAccess\EntitySourceDefinitionsConfigParser Class Reference

TODO: alternatively, the logic could go to the "static constructor" of EntitySourceDefinitions class? More...

Public Member Functions

 newDefinitionsFromConfigArray (array $sourceConfig, SubEntityTypesMapper $subEntityTypesMapper)
 

Private Member Functions

 assertConfigArrayWellFormed (array $sourceConfig)
 
 validateDatabaseSourceConfigFields ( $sourceData, $sourceName)
 
 isDatabaseSourceConfig (array $sourceData)
 

Static Private Member Functions

static splitNamespaceAndSlot ( $namespaceAndSlot)
 

Detailed Description

TODO: alternatively, the logic could go to the "static constructor" of EntitySourceDefinitions class?

Member Function Documentation

◆ assertConfigArrayWellFormed()

Wikibase\DataAccess\EntitySourceDefinitionsConfigParser::assertConfigArrayWellFormed ( array  $sourceConfig)
private

◆ isDatabaseSourceConfig()

Wikibase\DataAccess\EntitySourceDefinitionsConfigParser::isDatabaseSourceConfig ( array  $sourceData)
private

◆ newDefinitionsFromConfigArray()

Wikibase\DataAccess\EntitySourceDefinitionsConfigParser::newDefinitionsFromConfigArray ( array  $sourceConfig,
SubEntityTypesMapper  $subEntityTypesMapper 
)
Parameters
array[]$sourceConfig
SubEntityTypesMapper$subEntityTypesMapper
Returns
EntitySourceDefinitions

◆ splitNamespaceAndSlot()

static Wikibase\DataAccess\EntitySourceDefinitionsConfigParser::splitNamespaceAndSlot (   $namespaceAndSlot)
staticprivate

◆ validateDatabaseSourceConfigFields()

Wikibase\DataAccess\EntitySourceDefinitionsConfigParser::validateDatabaseSourceConfigFields (   $sourceData,
  $sourceName 
)
private

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