Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\WikibaseRepo Class Reference

Top level factory for the WikibaseRepo extension. More...

Public Member Functions

 newValidatorBuilders ()
 Returns a low level factory object for creating validators for well known data types.
 
 getKartographerEmbeddingHandler ()
 
 getLanguageNameLookup ()
 
 __construct (SettingsArray $settings, DataTypeDefinitions $dataTypeDefinitions, EntityTypeDefinitions $entityTypeDefinitions, EntitySourceDefinitions $entitySourceDefinitions)
 
 getUserLanguage ()
 
 getDataTypeFactory ()
 
 getValueParserFactory ()
 
 getDataValueFactory ()
 
 getEntityContentFactory ()
 
 getEntityChangeFactory ()
 
 getEntityDiffer ()
 
 getEntityPatcher ()
 
 getEntityStoreWatcher ()
 
 getEntityTitleLookup ()
 
 getEntityTitleTextLookup ()
 
 getEntityUrlLookup ()
 
 getEntityArticleIdLookup ()
 
 getEntityExistenceChecker ()
 
 getEntityRedirectChecker ()
 
 getEntityIdLookup ()
 
 getLocalRepoWikiPageMetaDataAccessor ()
 
 getEntityRevisionLookup ( $cache=Store::LOOKUP_CACHING_ENABLED)
 
 getEntityRevisionLookupFactoryCallbacks ()
 
 newItemRedirectCreationInteractor (User $user, IContextSource $context)
 
 newTermSearchInteractor ( $displayLanguageCode)
 
 getEntityStore ()
 
 getEntityStoreFactoryCallbacks ()
 
 getPropertyDataTypeLookup ()
 
 newPropertyDataTypeLookup ()
 
 getStringNormalizer ()
 
 getEntityLookup ( $cache=Store::LOOKUP_CACHING_ENABLED, $lookupMode=LookupConstants::LATEST_FROM_REPLICA)
 
 getPropertyLookup ( $cacheMode=Store::LOOKUP_CACHING_ENABLED)
 
 getItemLookup ( $cacheMode=Store::LOOKUP_CACHING_ENABLED)
 
 getSnakFactory ()
 
 getEntityIdParser ()
 
 getEntityIdComposer ()
 
 getStatementGuidParser ()
 
 getChangeOpFactoryProvider ()
 
 getSiteLinkBadgeChangeOpSerializationValidator ()
 
 getEntityChangeOpProvider ()
 
 getChangeOpDeserializerFactory ()
 TODO: this should be probably cached?
 
 getLanguageFallbackChainFactory ()
 
 getLanguageFallbackLabelDescriptionLookupFactory ()
 
 getStatementGuidValidator ()
 
 getSettings ()
 
 newIdGenerator ()
 
 getStore ()
 
 getLocalEntitySource ()
 
 getSnakFormatterFactory ()
 Returns a OutputFormatSnakFormatterFactory the provides SnakFormatters for different output formats.
 
 getTermBuffer ()
 
 getTermLookup ()
 
 getPrefetchingTermLookup ()
 
 getItemUrlParser ()
 
 getValueFormatterFactory ()
 Returns a OutputFormatValueFormatterFactory the provides ValueFormatters for different output formats.
 
 getValueSnakRdfBuilderFactory ()
 
 getRdfVocabulary ()
 
 getExceptionLocalizer ()
 
 getSummaryFormatter ()
 
 getEntityPermissionChecker ()
 
 getTermValidatorFactory ()
 
 getTermsCollisionDetectorFactory ()
 
 getPropertyTermsCollisionDetector ()
 
 getItemTermsCollisionDetector ()
 
 getEntityConstraintProvider ()
 
 getValidatorErrorLocalizer ()
 
 getSiteLookup ()
 
 getChangeNotifier ()
 
 getContentModelMappings ()
 Get the mapping of entity types => content models.
 
 getEntityFactory ()
 
 getEnabledEntityTypes ()
 
 getLocalEntityTypes ()
 
 getEntityContentDataCodec ()
 
 getBaseDataModelDeserializerFactory ()
 
 getBaseDataModelSerializerFactory ()
 
 getCompactBaseDataModelSerializerFactory ()
 
 getInternalFormatEntityDeserializer ()
 Returns a deserializer to deserialize entities in both current and legacy serialization.
 
 getAllTypesEntitySerializer ()
 
 getCompactEntitySerializer ()
 
 getStorageEntitySerializer ()
 Returns the entity serializer that generates serialization that is used in the storage layer.
 
 getInternalFormatStatementDeserializer ()
 Returns a deserializer to deserialize statements in both current and legacy serialization.
 
 getExternalFormatStatementDeserializer ()
 Returns a deserializer to deserialize statements in current serialization only.
 
 getStatementSerializer ()
 
 newItemHandler ()
 
 getPropertyTermStoreWriters ()
 
 getItemTermStoreWriters ()
 
 getItemTermStoreArrayForWriters ( $itemTermsMigrationStages, $oldItemTermStore, $newItemTermStore)
 
 getNewTermStoreWriterFactory ()
 
 getFieldDefinitionsByType ( $type)
 Get field definitions for entity depending on its type.
 
 newPropertyHandler ()
 
 newPropertyInfoBuilder ()
 
 getApiHelperFactory (IContextSource $context)
 
 newEditEntityFactory (IContextSource $context=null)
 
 newItemMergeInteractor (IContextSource $context)
 
 getLocalEntityNamespaces ()
 
 getEntityNamespaceLookup ()
 
 getLocalEntityNamespaceLookup ()
 
 getEntityIdHtmlLinkFormatterFactory ()
 
 getEntityViewFactory ()
 
 getEntityMetaTagsCreatorFactory ()
 
 getEntityParserOutputGeneratorFactory ()
 
 getEntityParserOutputGenerator (Language $userLanguage)
 
 getViewFactory ()
 
 getDataTypeValidatorFactory ()
 
 getDataTypeDefinitions ()
 
 getWikibaseContentLanguages ()
 
 getTermsLanguages ()
 Get a ContentLanguages object holding the languages available for labels, descriptions and aliases.
 
 getEntityTypesConfigValue ()
 
 getSettingsValueProvider ( $jsSetting, $phpSetting)
 
 getUnitConverter ()
 Get configure unit converter.
 
 getEntityRdfBuilderFactory ()
 
 getEntityDiffVisualizerFactory (IContextSource $contextSource)
 
 getEntityTypeToRepositoryMapping ()
 
 getConceptBaseUris ()
 
 getPropertyValueExpertsModule ()
 
 getWikibaseServices ()
 
 getDataAccessSettings ()
 
 getEntitySourceDefinitions ()
 
 getEntitySearchHelperCallbacks ()
 Get entity search helper callbacks.
 
 getEntityLinkFormatterFactory (Language $language)
 
 getFulltextSearchTypes ()
 Get entity search helper callbacks.
 
 getHtmlCacheUpdater ()
 
 getLogger ()
 
 inFederatedPropertyMode ()
 
 newFederatedPropertiesServiceFactory ()
 
 getLinkTargetEntityIdLookup ()
 

Static Public Member Functions

static resetClassStatics ()
 
static getDefaultInstance ()
 IMPORTANT: Use only when it is not feasible to inject an instance properly.
 
static getDefaultValidatorBuilders ()
 
static getDefaultValueFormatterBuilders ()
 
static getDefaultSnakFormatterBuilders ()
 

Private Member Functions

 newWikibaseValueFormatterBuilders (array $thumbLimits)
 Returns a low level factory object for creating formatters for well known data types.
 
 useKartographerGlobeCoordinateFormatter ()
 
 newWikibaseSnakFormatterBuilders (WikibaseValueFormatterBuilders $valueFormatterBuilders)
 Returns a low level factory object for creating formatters for well known data types.
 
 getContentLanguage ()
 
 newEditFilterHookRunner (IContextSource $context)
 
 newPropertyDataTypeLookupForLocalProperties ()
 
 getItemVocabularyBaseUri ()
 
 newValueFormatterFactory ()
 
 getCanonicalDocumentUrls ()
 
 getExceptionLocalizers (ValueFormatter $formatter)
 
 newSummaryFormatter ()
 
 getLabelDescriptionDuplicateDetector ()
 
 getMessageParameterFormatter ()
 Returns a ValueFormatter suitable for converting message parameters to wikitext.
 
 getInternalFormatDeserializerFactory ()
 
 getAllTypesEntityDeserializer ()
 Returns a deserializer to deserialize entities in current serialization only.
 
 getDataValueDeserializer ()
 
 getOldPropertyTermStoreWriter ()
 
 getOldItemTermStoreWriter ()
 
 getLegacyFormatDetectorCallback ()
 
 getMonolingualTextLanguages ()
 
 getCachingCommonsMediaFileNameLookup ()
 
 getUnitStorage ()
 Creates configured unit storage.
 
 newEntitySourceWikibaseServices ()
 
 getFormatterCache ()
 @fixme this is duplicated in WikibaseClient...
 
 throwLogicExceptionIfFederatedPropertiesNotEnabledAndConfigured ()
 Gaurd against Federated properties services being constructed in wiring when feature is disabled.
 

Static Private Member Functions

static newInstance ()
 IMPORTANT: Use only when it is not feasible to inject an instance properly.
 
static getEntitySourceDefinitionsFromSettings (SettingsArray $settings, EntityTypeDefinitions $entityTypeDefinitions)
 
static getDefaultDataTypes ()
 
static getDefaultEntityTypes ()
 

Private Attributes

 $settings
 
 $dataTypeFactory = null
 
 $valueParserFactory = null
 
 $snakFactory = null
 
 $propertyDataTypeLookup = null
 
 $statementGuidValidator = null
 
 $entityDeserializer = null
 
 $entityIdParser = null
 
 $entityIdComposer = null
 
 $snakFormatterFactory = null
 
 $valueFormatterFactory = null
 
 $summaryFormatter = null
 
 $exceptionLocalizer = null
 
 $store = null
 
 $wikibaseContentLanguages = null
 
 $dataTypeDefinitions
 
 $entityTypeDefinitions
 
 $valueSnakRdfBuilderFactory
 
 $rdfVocabulary
 
 $cachingCommonsMediaFileNameLookup = null
 
 $wikibaseServices = null
 
 $entityRdfBuilderFactory = null
 
 $kartographerEmbeddingHandler = null
 
 $entitySourceDefinitions
 
 $dataAccessSettings
 

Static Private Attributes

static $instance = null
 
static $validatorBuilders = null
 
static $valueFormatterBuilders = null
 
static $snakFormatterBuilders = null
 

Detailed Description

Top level factory for the WikibaseRepo extension.

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
Daniel Kinzler
Tobias Gritschacher < tobia.nosp@m.s.gr.nosp@m.itsch.nosp@m.ache.nosp@m.r@wik.nosp@m.imed.nosp@m.ia.de >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\WikibaseRepo::__construct ( SettingsArray  $settings,
DataTypeDefinitions  $dataTypeDefinitions,
EntityTypeDefinitions  $entityTypeDefinitions,
EntitySourceDefinitions  $entitySourceDefinitions 
)

Member Function Documentation

◆ getAllTypesEntityDeserializer()

Wikibase\Repo\WikibaseRepo::getAllTypesEntityDeserializer ( )
private

Returns a deserializer to deserialize entities in current serialization only.

Returns
DispatchableDeserializer

◆ getAllTypesEntitySerializer()

Wikibase\Repo\WikibaseRepo::getAllTypesEntitySerializer ( )
Returns
Serializer Entity serializer that generates the full (expanded) serialization.

◆ getApiHelperFactory()

Wikibase\Repo\WikibaseRepo::getApiHelperFactory ( IContextSource  $context)
Parameters
IContextSource$context
Returns
ApiHelperFactory

◆ getBaseDataModelDeserializerFactory()

Wikibase\Repo\WikibaseRepo::getBaseDataModelDeserializerFactory ( )
Returns
DeserializerFactory A factory with knowledge about items, properties, and the elements they are made of, but no other entity types.

◆ getBaseDataModelSerializerFactory()

Wikibase\Repo\WikibaseRepo::getBaseDataModelSerializerFactory ( )
Returns
SerializerFactory A factory with knowledge about items, properties, and the elements they are made of, but no other entity types. Returns serializers that generate the full (expanded) serialization.

◆ getCachingCommonsMediaFileNameLookup()

Wikibase\Repo\WikibaseRepo::getCachingCommonsMediaFileNameLookup ( )
private
Returns
CachingCommonsMediaFileNameLookup

◆ getCanonicalDocumentUrls()

Wikibase\Repo\WikibaseRepo::getCanonicalDocumentUrls ( )
private

◆ getChangeNotifier()

Wikibase\Repo\WikibaseRepo::getChangeNotifier ( )
Returns
ChangeNotifier

◆ getChangeOpDeserializerFactory()

Wikibase\Repo\WikibaseRepo::getChangeOpDeserializerFactory ( )

TODO: this should be probably cached?

Returns
ChangeOpDeserializerFactory

◆ getChangeOpFactoryProvider()

Wikibase\Repo\WikibaseRepo::getChangeOpFactoryProvider ( )
Returns
ChangeOpFactoryProvider

◆ getCompactBaseDataModelSerializerFactory()

Wikibase\Repo\WikibaseRepo::getCompactBaseDataModelSerializerFactory ( )
Returns
SerializerFactory A factory with knowledge about items, properties, and the elements they are made of, but no other entity types. Returns serializers that generate the most compact serialization.

◆ getCompactEntitySerializer()

Wikibase\Repo\WikibaseRepo::getCompactEntitySerializer ( )
Returns
Serializer Entity serializer that generates the most compact serialization.

◆ getConceptBaseUris()

Wikibase\Repo\WikibaseRepo::getConceptBaseUris ( )
Returns
string[] Associative array mapping repository or entity source names to base URIs of concept URIs.

◆ getContentLanguage()

Wikibase\Repo\WikibaseRepo::getContentLanguage ( )
private
Exceptions
MWExceptionwhen called to early
Returns
Language

Before this constant is defined, custom config may not have been taken into account. So try not to allow code to use a language before that point. This code was explicitly mentioning the SetupAfterCache hook. With services, that hook won't be a problem anymore. So this check may well be unnecessary (but better safe than sorry).

◆ getContentModelMappings()

Wikibase\Repo\WikibaseRepo::getContentModelMappings ( )

Get the mapping of entity types => content models.

Returns
array

◆ getDataAccessSettings()

Wikibase\Repo\WikibaseRepo::getDataAccessSettings ( )

◆ getDataTypeDefinitions()

Wikibase\Repo\WikibaseRepo::getDataTypeDefinitions ( )
Returns
DataTypeDefinitions

◆ getDataTypeFactory()

Wikibase\Repo\WikibaseRepo::getDataTypeFactory ( )
Returns
DataTypeFactory

◆ getDataTypeValidatorFactory()

Wikibase\Repo\WikibaseRepo::getDataTypeValidatorFactory ( )
Returns
DataTypeValidatorFactory

◆ getDataValueDeserializer()

Wikibase\Repo\WikibaseRepo::getDataValueDeserializer ( )
private
Returns
DataValueDeserializer

◆ getDataValueFactory()

Wikibase\Repo\WikibaseRepo::getDataValueFactory ( )
Returns
DataValueFactory

◆ getDefaultDataTypes()

static Wikibase\Repo\WikibaseRepo::getDefaultDataTypes ( )
staticprivate

◆ getDefaultEntityTypes()

static Wikibase\Repo\WikibaseRepo::getDefaultEntityTypes ( )
staticprivate
Returns
array[]

◆ getDefaultInstance()

static Wikibase\Repo\WikibaseRepo::getDefaultInstance ( )
static

IMPORTANT: Use only when it is not feasible to inject an instance properly.

Returns
self

◆ getDefaultSnakFormatterBuilders()

static Wikibase\Repo\WikibaseRepo::getDefaultSnakFormatterBuilders ( )
static
Warning
This is for use with bootstrap code in WikibaseRepo.datatypes.php only! Program logic should use WikibaseRepo::getSnakFormatterFactory() instead!
Returns
WikibaseSnakFormatterBuilders

◆ getDefaultValidatorBuilders()

static Wikibase\Repo\WikibaseRepo::getDefaultValidatorBuilders ( )
static
Warning
This is for use with bootstrap code in WikibaseRepo.datatypes.php only! Program logic should use WikibaseRepo::getDataTypeValidatorFactory() instead!
Returns
ValidatorBuilders

◆ getDefaultValueFormatterBuilders()

static Wikibase\Repo\WikibaseRepo::getDefaultValueFormatterBuilders ( )
static
Warning
This is for use with bootstrap code in WikibaseRepo.datatypes.php only! Program logic should use WikibaseRepo::getSnakFormatterFactory() instead!
Returns
WikibaseValueFormatterBuilders

◆ getEnabledEntityTypes()

Wikibase\Repo\WikibaseRepo::getEnabledEntityTypes ( )
Returns
string[] List of entity type identifiers (typically "item" and "property") that are configured in WikibaseRepo.entitytypes.php and enabled via the $wgWBRepoSettings['entityNamespaces'] setting. This list will also include any sub entity types of entity types defined in $wgWBRepoSettings['entityNamespaces']. Optionally the list also contains entity types from the configured foreign repositories.

◆ getEntityArticleIdLookup()

Wikibase\Repo\WikibaseRepo::getEntityArticleIdLookup ( )

◆ getEntityChangeFactory()

Wikibase\Repo\WikibaseRepo::getEntityChangeFactory ( )
Returns
EntityChangeFactory

◆ getEntityChangeOpProvider()

Wikibase\Repo\WikibaseRepo::getEntityChangeOpProvider ( )
Returns
EntityChangeOpProvider

◆ getEntityConstraintProvider()

Wikibase\Repo\WikibaseRepo::getEntityConstraintProvider ( )
Returns
EntityConstraintProvider

◆ getEntityContentDataCodec()

Wikibase\Repo\WikibaseRepo::getEntityContentDataCodec ( )
Returns
EntityContentDataCodec

◆ getEntityContentFactory()

Wikibase\Repo\WikibaseRepo::getEntityContentFactory ( )
Returns
EntityContentFactory

◆ getEntityDiffer()

Wikibase\Repo\WikibaseRepo::getEntityDiffer ( )
Returns
EntityDiffer

◆ getEntityDiffVisualizerFactory()

Wikibase\Repo\WikibaseRepo::getEntityDiffVisualizerFactory ( IContextSource  $contextSource)
Parameters
IContextSource$contextSource
Returns
EntityDiffVisualizerFactory

◆ getEntityExistenceChecker()

Wikibase\Repo\WikibaseRepo::getEntityExistenceChecker ( )

◆ getEntityFactory()

Wikibase\Repo\WikibaseRepo::getEntityFactory ( )
Returns
EntityFactory

◆ getEntityIdComposer()

Wikibase\Repo\WikibaseRepo::getEntityIdComposer ( )
Returns
EntityIdComposer

◆ getEntityIdHtmlLinkFormatterFactory()

Wikibase\Repo\WikibaseRepo::getEntityIdHtmlLinkFormatterFactory ( )
Returns
EntityIdFormatterFactory

◆ getEntityIdLookup()

Wikibase\Repo\WikibaseRepo::getEntityIdLookup ( )
Returns
EntityIdLookup

◆ getEntityIdParser()

Wikibase\Repo\WikibaseRepo::getEntityIdParser ( )
Returns
EntityIdParser

◆ getEntityLinkFormatterFactory()

Wikibase\Repo\WikibaseRepo::getEntityLinkFormatterFactory ( Language  $language)

◆ getEntityLookup()

Wikibase\Repo\WikibaseRepo::getEntityLookup (   $cache = Store::LOOKUP_CACHING_ENABLED,
  $lookupMode = LookupConstants::LATEST_FROM_REPLICA 
)
See also
Store::getEntityLookup
Parameters
string$cacheOne of Store::LOOKUP_CACHING_* Store::LOOKUP_CACHING_DISABLED to get an uncached direct lookup Store::LOOKUP_CACHING_RETRIEVE_ONLY to get a lookup which reads from the cache, but doesn't store retrieved entities Store::LOOKUP_CACHING_ENABLED to get a caching lookup (default)
string$lookupModeOne of the EntityRevisionLookup lookup mode constants TODO this should perhaps not refer to EntityRevisionLookup
Returns
EntityLookup

◆ getEntityMetaTagsCreatorFactory()

Wikibase\Repo\WikibaseRepo::getEntityMetaTagsCreatorFactory ( )

◆ getEntityNamespaceLookup()

Wikibase\Repo\WikibaseRepo::getEntityNamespaceLookup ( )
Returns
EntityNamespaceLookup

◆ getEntityParserOutputGenerator()

Wikibase\Repo\WikibaseRepo::getEntityParserOutputGenerator ( Language  $userLanguage)

◆ getEntityParserOutputGeneratorFactory()

Wikibase\Repo\WikibaseRepo::getEntityParserOutputGeneratorFactory ( )

◆ getEntityPatcher()

Wikibase\Repo\WikibaseRepo::getEntityPatcher ( )
Returns
EntityPatcher

◆ getEntityPermissionChecker()

Wikibase\Repo\WikibaseRepo::getEntityPermissionChecker ( )
Returns
EntityPermissionChecker

◆ getEntityRdfBuilderFactory()

Wikibase\Repo\WikibaseRepo::getEntityRdfBuilderFactory ( )
Returns
EntityRdfBuilderFactory

◆ getEntityRedirectChecker()

Wikibase\Repo\WikibaseRepo::getEntityRedirectChecker ( )

◆ getEntityRevisionLookup()

Wikibase\Repo\WikibaseRepo::getEntityRevisionLookup (   $cache = Store::LOOKUP_CACHING_ENABLED)
See also
Store::getEntityRevisionLookup
Parameters
string$cacheOne of Store::LOOKUP_CACHING_* Store::LOOKUP_CACHING_DISABLED to get an uncached direct lookup Store::LOOKUP_CACHING_RETRIEVE_ONLY to get a lookup which reads from the cache, but doesn't store retrieved entities Store::LOOKUP_CACHING_ENABLED to get a caching lookup (default)
Returns
EntityRevisionLookup

◆ getEntityRevisionLookupFactoryCallbacks()

Wikibase\Repo\WikibaseRepo::getEntityRevisionLookupFactoryCallbacks ( )
Returns
callable[]

◆ getEntitySearchHelperCallbacks()

Wikibase\Repo\WikibaseRepo::getEntitySearchHelperCallbacks ( )

Get entity search helper callbacks.

Returns
callable[]

◆ getEntitySourceDefinitions()

Wikibase\Repo\WikibaseRepo::getEntitySourceDefinitions ( )

◆ getEntitySourceDefinitionsFromSettings()

static Wikibase\Repo\WikibaseRepo::getEntitySourceDefinitionsFromSettings ( SettingsArray  $settings,
EntityTypeDefinitions  $entityTypeDefinitions 
)
staticprivate

◆ getEntityStore()

Wikibase\Repo\WikibaseRepo::getEntityStore ( )
Returns
EntityStore

◆ getEntityStoreFactoryCallbacks()

Wikibase\Repo\WikibaseRepo::getEntityStoreFactoryCallbacks ( )
Returns
callable[]

◆ getEntityStoreWatcher()

Wikibase\Repo\WikibaseRepo::getEntityStoreWatcher ( )
Returns
EntityStoreWatcher

◆ getEntityTitleLookup()

Wikibase\Repo\WikibaseRepo::getEntityTitleLookup ( )
Returns
EntityTitleStoreLookup

◆ getEntityTitleTextLookup()

Wikibase\Repo\WikibaseRepo::getEntityTitleTextLookup ( )

◆ getEntityTypesConfigValue()

Wikibase\Repo\WikibaseRepo::getEntityTypesConfigValue ( )

◆ getEntityTypeToRepositoryMapping()

Wikibase\Repo\WikibaseRepo::getEntityTypeToRepositoryMapping ( )
Returns
string[][] Associative array mapping names of known entity types (strings) to lists of names of repositories providing entities of those types. Note: Currently entities of a given type are only provided by single source. This assumption can be changed in the future.

◆ getEntityUrlLookup()

Wikibase\Repo\WikibaseRepo::getEntityUrlLookup ( )

◆ getEntityViewFactory()

Wikibase\Repo\WikibaseRepo::getEntityViewFactory ( )

◆ getExceptionLocalizer()

Wikibase\Repo\WikibaseRepo::getExceptionLocalizer ( )
Returns
ExceptionLocalizer

◆ getExceptionLocalizers()

Wikibase\Repo\WikibaseRepo::getExceptionLocalizers ( ValueFormatter  $formatter)
private
Parameters
ValueFormatter$formatter
Returns
ExceptionLocalizer[]

◆ getExternalFormatStatementDeserializer()

Wikibase\Repo\WikibaseRepo::getExternalFormatStatementDeserializer ( )

Returns a deserializer to deserialize statements in current serialization only.

Returns
Deserializer

◆ getFieldDefinitionsByType()

Wikibase\Repo\WikibaseRepo::getFieldDefinitionsByType (   $type)

Get field definitions for entity depending on its type.

Parameters
string$typeEntity type
Returns
FieldDefinitions

◆ getFormatterCache()

Wikibase\Repo\WikibaseRepo::getFormatterCache ( )
private

@fixme this is duplicated in WikibaseClient...

Returns
CacheInterface

◆ getFulltextSearchTypes()

Wikibase\Repo\WikibaseRepo::getFulltextSearchTypes ( )

Get entity search helper callbacks.

Returns
string[]

◆ getHtmlCacheUpdater()

Wikibase\Repo\WikibaseRepo::getHtmlCacheUpdater ( )

◆ getInternalFormatDeserializerFactory()

Wikibase\Repo\WikibaseRepo::getInternalFormatDeserializerFactory ( )
private
Returns
InternalDeserializerFactory

◆ getInternalFormatEntityDeserializer()

Wikibase\Repo\WikibaseRepo::getInternalFormatEntityDeserializer ( )

Returns a deserializer to deserialize entities in both current and legacy serialization.

Returns
Deserializer

◆ getInternalFormatStatementDeserializer()

Wikibase\Repo\WikibaseRepo::getInternalFormatStatementDeserializer ( )

Returns a deserializer to deserialize statements in both current and legacy serialization.

Returns
Deserializer

◆ getItemLookup()

Wikibase\Repo\WikibaseRepo::getItemLookup (   $cacheMode = Store::LOOKUP_CACHING_ENABLED)

◆ getItemTermsCollisionDetector()

Wikibase\Repo\WikibaseRepo::getItemTermsCollisionDetector ( )

◆ getItemTermStoreArrayForWriters()

Wikibase\Repo\WikibaseRepo::getItemTermStoreArrayForWriters (   $itemTermsMigrationStages,
  $oldItemTermStore,
  $newItemTermStore 
)
Parameters
array$itemTermsMigrationStages
mixed | ItemTermStoreWriter$oldItemTermStore
mixed | ItemTermStoreWriter$newItemTermStore
Returns
array

◆ getItemTermStoreWriters()

Wikibase\Repo\WikibaseRepo::getItemTermStoreWriters ( )
Returns
EntityTermStoreWriter[]

◆ getItemUrlParser()

Wikibase\Repo\WikibaseRepo::getItemUrlParser ( )

◆ getItemVocabularyBaseUri()

Wikibase\Repo\WikibaseRepo::getItemVocabularyBaseUri ( )
private

◆ getKartographerEmbeddingHandler()

Wikibase\Repo\WikibaseRepo::getKartographerEmbeddingHandler ( )
Returns
CachingKartographerEmbeddingHandler|null

◆ getLabelDescriptionDuplicateDetector()

Wikibase\Repo\WikibaseRepo::getLabelDescriptionDuplicateDetector ( )
private
Returns
LabelDescriptionDuplicateDetector

◆ getLanguageFallbackChainFactory()

Wikibase\Repo\WikibaseRepo::getLanguageFallbackChainFactory ( )
Returns
LanguageFallbackChainFactory

◆ getLanguageFallbackLabelDescriptionLookupFactory()

Wikibase\Repo\WikibaseRepo::getLanguageFallbackLabelDescriptionLookupFactory ( )
Returns
LanguageFallbackLabelDescriptionLookupFactory

◆ getLanguageNameLookup()

Wikibase\Repo\WikibaseRepo::getLanguageNameLookup ( )
Returns
LanguageNameLookup

◆ getLegacyFormatDetectorCallback()

Wikibase\Repo\WikibaseRepo::getLegacyFormatDetectorCallback ( )
private

Detects blobs that may be using a legacy serialization format. WikibaseRepo uses this for the $legacyExportFormatDetector parameter when constructing EntityHandlers.

See also
WikibaseRepo::newItemHandler
WikibaseRepo::newPropertyHandler
EntityHandler::__construct
Note
: False positives (detecting a legacy format when really no legacy format was used) are acceptable, false negatives (failing to detect a legacy format when one was used) are not acceptable.
Parameters
string$blob
string$format
Returns
bool True if $blob seems to be using a legacy serialization format.

◆ getLinkTargetEntityIdLookup()

Wikibase\Repo\WikibaseRepo::getLinkTargetEntityIdLookup ( )

◆ getLocalEntityNamespaceLookup()

Wikibase\Repo\WikibaseRepo::getLocalEntityNamespaceLookup ( )

◆ getLocalEntityNamespaces()

Wikibase\Repo\WikibaseRepo::getLocalEntityNamespaces ( )
Returns
int[] An array mapping entity type identifiers to namespace numbers.

◆ getLocalEntitySource()

Wikibase\Repo\WikibaseRepo::getLocalEntitySource ( )
Returns
EntitySource The entity source of the local repository

◆ getLocalEntityTypes()

Wikibase\Repo\WikibaseRepo::getLocalEntityTypes ( )
Returns
string[] List of entity type identifiers (typically "item" and "property") that are configured in WikibaseRepo.entitytypes.php and enabled via the $wgWBRepoSettings['entityNamespaces'] setting. This list will also include any sub entity types of entity types defined in $wgWBRepoSettings['entityNamespaces'].

◆ getLocalRepoWikiPageMetaDataAccessor()

Wikibase\Repo\WikibaseRepo::getLocalRepoWikiPageMetaDataAccessor ( )

◆ getLogger()

Wikibase\Repo\WikibaseRepo::getLogger ( )

◆ getMessageParameterFormatter()

Wikibase\Repo\WikibaseRepo::getMessageParameterFormatter ( )
private

Returns a ValueFormatter suitable for converting message parameters to wikitext.

The formatter is most likely implemented to dispatch to different formatters internally, based on the type of the parameter.

Returns
ValueFormatter

◆ getMonolingualTextLanguages()

Wikibase\Repo\WikibaseRepo::getMonolingualTextLanguages ( )
private

◆ getNewTermStoreWriterFactory()

Wikibase\Repo\WikibaseRepo::getNewTermStoreWriterFactory ( )

◆ getOldItemTermStoreWriter()

Wikibase\Repo\WikibaseRepo::getOldItemTermStoreWriter ( )
private
Returns
ItemTermStoreWriter for the OLD term storage schema (wb_terms)

◆ getOldPropertyTermStoreWriter()

Wikibase\Repo\WikibaseRepo::getOldPropertyTermStoreWriter ( )
private
Returns
PropertyTermStoreWriter for the OLD term storage schema (wb_terms)

◆ getPrefetchingTermLookup()

Wikibase\Repo\WikibaseRepo::getPrefetchingTermLookup ( )
Returns
PrefetchingTermLookup

◆ getPropertyDataTypeLookup()

Wikibase\Repo\WikibaseRepo::getPropertyDataTypeLookup ( )

◆ getPropertyLookup()

Wikibase\Repo\WikibaseRepo::getPropertyLookup (   $cacheMode = Store::LOOKUP_CACHING_ENABLED)

◆ getPropertyTermsCollisionDetector()

Wikibase\Repo\WikibaseRepo::getPropertyTermsCollisionDetector ( )

◆ getPropertyTermStoreWriters()

Wikibase\Repo\WikibaseRepo::getPropertyTermStoreWriters ( )
Returns
EntityTermStoreWriter[]

◆ getPropertyValueExpertsModule()

Wikibase\Repo\WikibaseRepo::getPropertyValueExpertsModule ( )

◆ getRdfVocabulary()

Wikibase\Repo\WikibaseRepo::getRdfVocabulary ( )
Returns
RdfVocabulary

◆ getSettings()

Wikibase\Repo\WikibaseRepo::getSettings ( )
Returns
SettingsArray

◆ getSettingsValueProvider()

Wikibase\Repo\WikibaseRepo::getSettingsValueProvider (   $jsSetting,
  $phpSetting 
)

◆ getSiteLinkBadgeChangeOpSerializationValidator()

Wikibase\Repo\WikibaseRepo::getSiteLinkBadgeChangeOpSerializationValidator ( )

◆ getSiteLookup()

Wikibase\Repo\WikibaseRepo::getSiteLookup ( )
Returns
SiteLookup

◆ getSnakFactory()

Wikibase\Repo\WikibaseRepo::getSnakFactory ( )
Returns
SnakFactory

◆ getSnakFormatterFactory()

Wikibase\Repo\WikibaseRepo::getSnakFormatterFactory ( )

Returns a OutputFormatSnakFormatterFactory the provides SnakFormatters for different output formats.

Returns
OutputFormatSnakFormatterFactory

◆ getStatementGuidParser()

Wikibase\Repo\WikibaseRepo::getStatementGuidParser ( )
Returns
StatementGuidParser

◆ getStatementGuidValidator()

Wikibase\Repo\WikibaseRepo::getStatementGuidValidator ( )
Returns
StatementGuidValidator

◆ getStatementSerializer()

Wikibase\Repo\WikibaseRepo::getStatementSerializer ( )
Returns
Serializer

◆ getStorageEntitySerializer()

Wikibase\Repo\WikibaseRepo::getStorageEntitySerializer ( )

Returns the entity serializer that generates serialization that is used in the storage layer.

Returns
Serializer

◆ getStore()

Wikibase\Repo\WikibaseRepo::getStore ( )
Returns
Store

◆ getStringNormalizer()

Wikibase\Repo\WikibaseRepo::getStringNormalizer ( )
Returns
StringNormalizer

◆ getSummaryFormatter()

Wikibase\Repo\WikibaseRepo::getSummaryFormatter ( )
Returns
SummaryFormatter

◆ getTermBuffer()

Wikibase\Repo\WikibaseRepo::getTermBuffer ( )
Returns
TermBuffer|AliasTermBuffer

◆ getTermLookup()

Wikibase\Repo\WikibaseRepo::getTermLookup ( )
Returns
TermLookup

◆ getTermsCollisionDetectorFactory()

Wikibase\Repo\WikibaseRepo::getTermsCollisionDetectorFactory ( )

◆ getTermsLanguages()

Wikibase\Repo\WikibaseRepo::getTermsLanguages ( )

Get a ContentLanguages object holding the languages available for labels, descriptions and aliases.

Returns
ContentLanguages

◆ getTermValidatorFactory()

Wikibase\Repo\WikibaseRepo::getTermValidatorFactory ( )
Returns
TermValidatorFactory

◆ getUnitConverter()

Wikibase\Repo\WikibaseRepo::getUnitConverter ( )

Get configure unit converter.

Returns
null|UnitConverter Configured Unit converter, or null if none configured

◆ getUnitStorage()

Wikibase\Repo\WikibaseRepo::getUnitStorage ( )
private

Creates configured unit storage.

Configuration is in unitStorage parameter, in getObjectFromSpec format.

See also
ObjectFactory::getObjectFromSpec
Returns
null|UnitStorage Configured unit storage, or null

◆ getUserLanguage()

Wikibase\Repo\WikibaseRepo::getUserLanguage ( )
Exceptions
MWExceptionwhen called to early
Returns
Language

◆ getValidatorErrorLocalizer()

Wikibase\Repo\WikibaseRepo::getValidatorErrorLocalizer ( )
Returns
ValidatorErrorLocalizer

◆ getValueFormatterFactory()

Wikibase\Repo\WikibaseRepo::getValueFormatterFactory ( )

Returns a OutputFormatValueFormatterFactory the provides ValueFormatters for different output formats.

Returns
OutputFormatValueFormatterFactory

◆ getValueParserFactory()

Wikibase\Repo\WikibaseRepo::getValueParserFactory ( )
Returns
ValueParserFactory

◆ getValueSnakRdfBuilderFactory()

Wikibase\Repo\WikibaseRepo::getValueSnakRdfBuilderFactory ( )
Returns
ValueSnakRdfBuilderFactory

◆ getViewFactory()

Wikibase\Repo\WikibaseRepo::getViewFactory ( )
Returns
ViewFactory

◆ getWikibaseContentLanguages()

Wikibase\Repo\WikibaseRepo::getWikibaseContentLanguages ( )

◆ getWikibaseServices()

Wikibase\Repo\WikibaseRepo::getWikibaseServices ( )
Returns
WikibaseServices

◆ inFederatedPropertyMode()

Wikibase\Repo\WikibaseRepo::inFederatedPropertyMode ( )

◆ newEditEntityFactory()

Wikibase\Repo\WikibaseRepo::newEditEntityFactory ( IContextSource  $context = null)
Parameters
IContextSource | null$context
Returns
MediawikiEditEntityFactory

◆ newEditFilterHookRunner()

Wikibase\Repo\WikibaseRepo::newEditFilterHookRunner ( IContextSource  $context)
private
Parameters
IContextSource$context
Returns
EditFilterHookRunner

◆ newEntitySourceWikibaseServices()

Wikibase\Repo\WikibaseRepo::newEntitySourceWikibaseServices ( )
private

◆ newFederatedPropertiesServiceFactory()

Wikibase\Repo\WikibaseRepo::newFederatedPropertiesServiceFactory ( )

◆ newIdGenerator()

Wikibase\Repo\WikibaseRepo::newIdGenerator ( )

◆ newInstance()

static Wikibase\Repo\WikibaseRepo::newInstance ( )
staticprivate

IMPORTANT: Use only when it is not feasible to inject an instance properly.

Exceptions
MWException
Returns
self

◆ newItemHandler()

Wikibase\Repo\WikibaseRepo::newItemHandler ( )

◆ newItemMergeInteractor()

Wikibase\Repo\WikibaseRepo::newItemMergeInteractor ( IContextSource  $context)
Parameters
IContextSource$context
Returns
ItemMergeInteractor

◆ newItemRedirectCreationInteractor()

Wikibase\Repo\WikibaseRepo::newItemRedirectCreationInteractor ( User  $user,
IContextSource  $context 
)
Parameters
User$user
IContextSource$context
Returns
ItemRedirectCreationInteractor

◆ newPropertyDataTypeLookup()

Wikibase\Repo\WikibaseRepo::newPropertyDataTypeLookup ( )

◆ newPropertyDataTypeLookupForLocalProperties()

Wikibase\Repo\WikibaseRepo::newPropertyDataTypeLookupForLocalProperties ( )
private

◆ newPropertyHandler()

Wikibase\Repo\WikibaseRepo::newPropertyHandler ( )

◆ newPropertyInfoBuilder()

Wikibase\Repo\WikibaseRepo::newPropertyInfoBuilder ( )
Returns
PropertyInfoBuilder

◆ newSummaryFormatter()

Wikibase\Repo\WikibaseRepo::newSummaryFormatter ( )
private
Returns
SummaryFormatter

◆ newTermSearchInteractor()

Wikibase\Repo\WikibaseRepo::newTermSearchInteractor (   $displayLanguageCode)
Parameters
string$displayLanguageCode
Returns
MatchingTermsLookupSearchInteractor

◆ newValidatorBuilders()

Wikibase\Repo\WikibaseRepo::newValidatorBuilders ( )

Returns a low level factory object for creating validators for well known data types.

Warning
This is for use with getDefaultValidatorBuilders() during bootstrap only! Program logic should use WikibaseRepo::getDataTypeValidatorFactory() instead!
Returns
ValidatorBuilders

◆ newValueFormatterFactory()

Wikibase\Repo\WikibaseRepo::newValueFormatterFactory ( )
private
Returns
OutputFormatValueFormatterFactory

◆ newWikibaseSnakFormatterBuilders()

Wikibase\Repo\WikibaseRepo::newWikibaseSnakFormatterBuilders ( WikibaseValueFormatterBuilders  $valueFormatterBuilders)
private

Returns a low level factory object for creating formatters for well known data types.

Warning
This is for use with getDefaultValueFormatterBuilders() during bootstrap only! Program logic should use WikibaseRepo::getSnakFormatterFactory() instead!
Parameters
WikibaseValueFormatterBuilders$valueFormatterBuilders
Returns
WikibaseSnakFormatterBuilders

◆ newWikibaseValueFormatterBuilders()

Wikibase\Repo\WikibaseRepo::newWikibaseValueFormatterBuilders ( array  $thumbLimits)
private

Returns a low level factory object for creating formatters for well known data types.

Warning
This is for use with getDefaultValueFormatterBuilders() during bootstrap only! Program logic should use WikibaseRepo::getSnakFormatterFactory() instead!
Parameters
array$thumbLimits
Returns
WikibaseValueFormatterBuilders

◆ resetClassStatics()

static Wikibase\Repo\WikibaseRepo::resetClassStatics ( )
static

◆ throwLogicExceptionIfFederatedPropertiesNotEnabledAndConfigured()

Wikibase\Repo\WikibaseRepo::throwLogicExceptionIfFederatedPropertiesNotEnabledAndConfigured ( )
private

Gaurd against Federated properties services being constructed in wiring when feature is disabled.

◆ useKartographerGlobeCoordinateFormatter()

Wikibase\Repo\WikibaseRepo::useKartographerGlobeCoordinateFormatter ( )
private
Returns
bool

Member Data Documentation

◆ $cachingCommonsMediaFileNameLookup

Wikibase\Repo\WikibaseRepo::$cachingCommonsMediaFileNameLookup = null
private

◆ $dataAccessSettings

Wikibase\Repo\WikibaseRepo::$dataAccessSettings
private

◆ $dataTypeDefinitions

Wikibase\Repo\WikibaseRepo::$dataTypeDefinitions
private

◆ $dataTypeFactory

Wikibase\Repo\WikibaseRepo::$dataTypeFactory = null
private

◆ $entityDeserializer

Wikibase\Repo\WikibaseRepo::$entityDeserializer = null
private

◆ $entityIdComposer

Wikibase\Repo\WikibaseRepo::$entityIdComposer = null
private

◆ $entityIdParser

Wikibase\Repo\WikibaseRepo::$entityIdParser = null
private

◆ $entityRdfBuilderFactory

Wikibase\Repo\WikibaseRepo::$entityRdfBuilderFactory = null
private

◆ $entitySourceDefinitions

Wikibase\Repo\WikibaseRepo::$entitySourceDefinitions
private

◆ $entityTypeDefinitions

Wikibase\Repo\WikibaseRepo::$entityTypeDefinitions
private

◆ $exceptionLocalizer

Wikibase\Repo\WikibaseRepo::$exceptionLocalizer = null
private

◆ $instance

Wikibase\Repo\WikibaseRepo::$instance = null
staticprivate

◆ $kartographerEmbeddingHandler

Wikibase\Repo\WikibaseRepo::$kartographerEmbeddingHandler = null
private

◆ $propertyDataTypeLookup

Wikibase\Repo\WikibaseRepo::$propertyDataTypeLookup = null
private

◆ $rdfVocabulary

Wikibase\Repo\WikibaseRepo::$rdfVocabulary
private

◆ $settings

Wikibase\Repo\WikibaseRepo::$settings
private

◆ $snakFactory

Wikibase\Repo\WikibaseRepo::$snakFactory = null
private

◆ $snakFormatterBuilders

Wikibase\Repo\WikibaseRepo::$snakFormatterBuilders = null
staticprivate

◆ $snakFormatterFactory

Wikibase\Repo\WikibaseRepo::$snakFormatterFactory = null
private

◆ $statementGuidValidator

Wikibase\Repo\WikibaseRepo::$statementGuidValidator = null
private

◆ $store

Wikibase\Repo\WikibaseRepo::$store = null
private

◆ $summaryFormatter

Wikibase\Repo\WikibaseRepo::$summaryFormatter = null
private

◆ $validatorBuilders

Wikibase\Repo\WikibaseRepo::$validatorBuilders = null
staticprivate

◆ $valueFormatterBuilders

Wikibase\Repo\WikibaseRepo::$valueFormatterBuilders = null
staticprivate

◆ $valueFormatterFactory

Wikibase\Repo\WikibaseRepo::$valueFormatterFactory = null
private

◆ $valueParserFactory

Wikibase\Repo\WikibaseRepo::$valueParserFactory = null
private

◆ $valueSnakRdfBuilderFactory

Wikibase\Repo\WikibaseRepo::$valueSnakRdfBuilderFactory
private

◆ $wikibaseContentLanguages

Wikibase\Repo\WikibaseRepo::$wikibaseContentLanguages = null
private

◆ $wikibaseServices

Wikibase\Repo\WikibaseRepo::$wikibaseServices = null
private

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