Wikibase
MediaWiki Wikibase extension
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. More...
 
 getLanguageNameLookup ()
 
 __construct ()
 
 getEntityRevisionLookup ( $cache=Store::LOOKUP_CACHING_ENABLED)
 
 getEntityRevisionLookupFactoryCallbacks ()
 
 newItemRedirectCreationInteractor (User $user, IContextSource $context)
 
 newTermSearchInteractor ( $displayLanguageCode)
 
 getEntityStoreFactoryCallbacks ()
 
 getPropertyDataTypeLookup ()
 
 newPropertyDataTypeLookup ()
 
 getPropertyLookup ( $cacheMode=Store::LOOKUP_CACHING_ENABLED)
 
 getSnakFactory ()
 
 getChangeOpFactoryProvider ()
 
 getChangeOpDeserializerFactory ()
 TODO: this should be probably cached? More...
 
 getSnakFormatterFactory ()
 Returns a OutputFormatSnakFormatterFactory the provides SnakFormatters for different output formats. More...
 
 getExceptionLocalizer ()
 
 getSummaryFormatter ()
 
 getValidatorErrorLocalizer ()
 
 getSiteLookup ()
 
 getEnabledEntityTypes ()
 
 getEntityContentDataCodec ()
 
 newItemHandler ()
 
 getFieldDefinitionsByType ( $type)
 Get field definitions for entity depending on its type. More...
 
 newPropertyHandler ()
 
 newPropertyInfoBuilder ()
 
 getApiHelperFactory (IContextSource $context)
 
 newEditEntityFactory (IContextSource $context=null)
 
 newItemMergeInteractor (IContextSource $context)
 
 getLocalEntityNamespaces ()
 
 getEntityIdHtmlLinkFormatterFactory ()
 
 getEntityViewFactory ()
 
 getEntityMetaTagsCreatorFactory ()
 
 getEntityDataFormatProvider ()
 
 getEntityDataUriManager ()
 
 getEntityParserOutputGeneratorFactory ()
 
 getEntityParserOutputGenerator (Language $userLanguage)
 
 getViewFactory ()
 
 getEntityTypesConfigValue ()
 
 getSettingsValueProvider ( $jsSetting, $phpSetting)
 
 getEntityDiffVisualizerFactory (IContextSource $contextSource)
 
 getEntityTypeToRepositoryMapping ()
 
 getConceptBaseUris ()
 
 getEntitySearchHelperCallbacks ()
 
 getEntityLinkFormatterFactory (Language $language)
 
 getFulltextSearchTypes ()
 Get entity search helper callbacks. More...
 
 inFederatedPropertyMode ()
 
 newFederatedPropertiesServiceFactory ()
 

Static Public Member Functions

static resetClassStatics ()
 
static getDefaultInstance ()
 IMPORTANT: Use only when it is not feasible to inject an instance properly. More...
 
static getDefaultValidatorBuilders ()
 
static getDefaultValueFormatterBuilders ()
 
static getKartographerEmbeddingHandler (ContainerInterface $services=null)
 
static getDefaultSnakFormatterBuilders ()
 
static getUserLanguage (ContainerInterface $services=null)
 
static getDataTypeFactory (ContainerInterface $services=null)
 
static getValueParserFactory (ContainerInterface $services=null)
 
static getDataValueFactory (ContainerInterface $services=null)
 
static getEntityContentFactory (ContainerInterface $services=null)
 
static getEntityTypeDefinitions (ContainerInterface $services=null)
 
static getEntityChangeFactory (ContainerInterface $services=null)
 
static getEntityDiffer (ContainerInterface $services=null)
 
static getEntityPatcher (ContainerInterface $services=null)
 
static getEntityStoreWatcher (ContainerInterface $services=null)
 
static getEntityTitleLookup (ContainerInterface $services=null)
 
static getEntityTitleStoreLookup (ContainerInterface $services=null)
 
static getEntityTitleTextLookup (ContainerInterface $services=null)
 
static getEntityUrlLookup (ContainerInterface $services=null)
 
static getEntityArticleIdLookup (ContainerInterface $services=null)
 
static getEntityExistenceChecker (ContainerInterface $services=null)
 
static getEntityRedirectChecker (ContainerInterface $services=null)
 
static getEntityIdLookup (ContainerInterface $services=null)
 
static getLocalRepoWikiPageMetaDataAccessor (ContainerInterface $services=null)
 
static getEntityStore (ContainerInterface $services=null)
 
static getStringNormalizer (ContainerInterface $services=null)
 
static getEntityLookup (ContainerInterface $services=null)
 Get a caching entity lookup that reads from a replica DB. More...
 
static getEntityIdParser (ContainerInterface $services=null)
 
static getEntityIdComposer (ContainerInterface $services=null)
 
static getStatementGuidParser (ContainerInterface $services=null)
 
static getSiteLinkBadgeChangeOpSerializationValidator (ContainerInterface $services=null)
 
static getEntityChangeOpProvider (ContainerInterface $services=null)
 
static getLanguageFallbackChainFactory (ContainerInterface $services=null)
 
static getLanguageFallbackLabelDescriptionLookupFactory (ContainerInterface $services=null)
 
static getStatementGuidValidator (ContainerInterface $service=null)
 
static getSettings (ContainerInterface $services=null)
 
static getIdGenerator (ContainerInterface $services=null)
 
static getStore (ContainerInterface $services=null)
 
static getLocalEntitySource (ContainerInterface $services=null)
 
static getTermBuffer (ContainerInterface $services=null)
 
static getAliasTermBuffer (ContainerInterface $services=null)
 
static getTermLookup (ContainerInterface $services=null)
 
static getPrefetchingTermLookupFactory (ContainerInterface $services=null)
 
static getPrefetchingTermLookup (ContainerInterface $services=null)
 
static getItemUrlParser (ContainerInterface $services=null)
 
static getItemVocabularyBaseUri (ContainerInterface $services=null)
 
static getValueFormatterFactory (ContainerInterface $services=null)
 
static getValueSnakRdfBuilderFactory (ContainerInterface $services=null)
 
static getRdfVocabulary (ContainerInterface $services=null)
 
static getEntityPermissionChecker (ContainerInterface $services=null)
 
static getTermValidatorFactory (ContainerInterface $services=null)
 
static getTermsCollisionDetectorFactory (ContainerInterface $services=null)
 
static getPropertyTermsCollisionDetector (ContainerInterface $services=null)
 
static getItemTermsCollisionDetector (ContainerInterface $services=null)
 
static getEntityConstraintProvider (ContainerInterface $services=null)
 
static getMessageParameterFormatter (ContainerInterface $services=null)
 Returns a ValueFormatter suitable for converting message parameters to wikitext. More...
 
static getChangeNotifier (ContainerInterface $services=null)
 
static getContentModelMappings (ContainerInterface $services=null)
 Get the mapping of entity types => content models. More...
 
static getEntityFactory (ContainerInterface $services=null)
 
static getLocalEntityTypes (ContainerInterface $services=null)
 
static getBaseDataModelDeserializerFactory (ContainerInterface $services=null)
 
static getInternalFormatDeserializerFactory (ContainerInterface $services=null)
 
static getBaseDataModelSerializerFactory (ContainerInterface $services=null)
 
static getCompactBaseDataModelSerializerFactory (ContainerInterface $services=null)
 
static getAllTypesEntityDeserializer (ContainerInterface $services=null)
 
static getInternalFormatEntityDeserializer (ContainerInterface $services=null)
 Returns a deserializer to deserialize entities in both current and legacy serialization. More...
 
static getAllTypesEntitySerializer (ContainerInterface $services=null)
 Entity serializer that generates the full (expanded) serialization. More...
 
static getCompactEntitySerializer (ContainerInterface $services=null)
 Entity serializer that generates the most compact serialization. More...
 
static getStorageEntitySerializer (ContainerInterface $services=null)
 Returns the entity serializer that generates serialization that is used in the storage layer. More...
 
static getExternalFormatStatementDeserializer (ContainerInterface $services=null)
 Returns a deserializer to deserialize statements in current serialization only. More...
 
static getDataValueDeserializer (ContainerInterface $services=null)
 
static getPropertyTermStoreWriter (ContainerInterface $services=null)
 
static getItemTermStoreWriter (ContainerInterface $services=null)
 
static getTermStoreWriterFactory (ContainerInterface $services=null)
 
static getDatabaseTypeIdsStore (ContainerInterface $services=null)
 Do not use this service directly. More...
 
static getTypeIdsAcquirer (ContainerInterface $services=null)
 
static getTypeIdsLookup (ContainerInterface $services=null)
 
static getTypeIdsResolver (ContainerInterface $services=null)
 
static getEntityNamespaceLookup (ContainerInterface $services=null)
 
static getLocalEntityNamespaceLookup (ContainerInterface $services=null)
 
static getDataTypeValidatorFactory (ContainerInterface $services=null)
 
static getDataTypeDefinitions (ContainerInterface $services=null)
 
static getWikibaseContentLanguages (ContainerInterface $services=null)
 
static getMonolingualTextLanguages (ContainerInterface $services=null)
 
static getTermsLanguages (ContainerInterface $services=null)
 Get a ContentLanguages object holding the languages available for labels, descriptions and aliases. More...
 
static getUnitConverter (ContainerInterface $services=null)
 
static getEntityRdfBuilderFactory (ContainerInterface $services=null)
 
static getPropertyValueExpertsModule (ContainerInterface $services=null)
 
static getSingleEntitySourceServicesFactory (ContainerInterface $services=null)
 
static getWikibaseServices (ContainerInterface $services=null)
 
static getDataAccessSettings (ContainerInterface $services=null)
 
static getEntitySourceDefinitions (ContainerInterface $services=null)
 
static getTermFallbackCache (ContainerInterface $services=null)
 
static getTermFallbackCacheFactory (ContainerInterface $services=null)
 
static getLogger (ContainerInterface $services=null)
 
static getLinkTargetEntityIdLookup (ContainerInterface $services=null)
 

Private Member Functions

 newWikibaseValueFormatterBuilders (array $thumbLimits)
 Returns a low level factory object for creating formatters for well known data types. More...
 
 newWikibaseSnakFormatterBuilders (WikibaseValueFormatterBuilders $valueFormatterBuilders)
 Returns a low level factory object for creating formatters for well known data types. More...
 
 getContentLanguage ()
 
 newEditFilterHookRunner (IContextSource $context)
 
 newPropertyDataTypeLookupForLocalProperties ()
 
 getExceptionLocalizers (ValueFormatter $formatter)
 
 newSummaryFormatter ()
 
 getLegacyFormatDetectorCallback ()
 
 getCachingCommonsMediaFileNameLookup ()
 
 throwLogicExceptionIfFederatedPropertiesNotEnabledAndConfigured ()
 Guard against Federated properties services being constructed in wiring when feature is disabled. More...
 

Static Private Member Functions

static newInstance ()
 IMPORTANT: Use only when it is not feasible to inject an instance properly. More...
 

Private Attributes

 $snakFactory = null
 
 $propertyDataTypeLookup = null
 
 $snakFormatterFactory = null
 
 $summaryFormatter = null
 
 $exceptionLocalizer = null
 
 $cachingCommonsMediaFileNameLookup = null
 

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 ( )

Member Function Documentation

◆ getAliasTermBuffer()

static Wikibase\Repo\WikibaseRepo::getAliasTermBuffer ( ContainerInterface  $services = null)
static

◆ getAllTypesEntityDeserializer()

static Wikibase\Repo\WikibaseRepo::getAllTypesEntityDeserializer ( ContainerInterface  $services = null)
static

◆ getAllTypesEntitySerializer()

static Wikibase\Repo\WikibaseRepo::getAllTypesEntitySerializer ( ContainerInterface  $services = null)
static

Entity serializer that generates the full (expanded) serialization.

◆ getApiHelperFactory()

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

◆ getBaseDataModelDeserializerFactory()

static Wikibase\Repo\WikibaseRepo::getBaseDataModelDeserializerFactory ( ContainerInterface  $services = null)
static

◆ getBaseDataModelSerializerFactory()

static Wikibase\Repo\WikibaseRepo::getBaseDataModelSerializerFactory ( ContainerInterface  $services = null)
static
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

◆ getChangeNotifier()

static Wikibase\Repo\WikibaseRepo::getChangeNotifier ( ContainerInterface  $services = null)
static

◆ getChangeOpDeserializerFactory()

Wikibase\Repo\WikibaseRepo::getChangeOpDeserializerFactory ( )

TODO: this should be probably cached?

Returns
ChangeOpDeserializerFactory

◆ getChangeOpFactoryProvider()

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

◆ getCompactBaseDataModelSerializerFactory()

static Wikibase\Repo\WikibaseRepo::getCompactBaseDataModelSerializerFactory ( ContainerInterface  $services = null)
static
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()

static Wikibase\Repo\WikibaseRepo::getCompactEntitySerializer ( ContainerInterface  $services = null)
static

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()

static Wikibase\Repo\WikibaseRepo::getContentModelMappings ( ContainerInterface  $services = null)
static

Get the mapping of entity types => content models.

◆ getDataAccessSettings()

static Wikibase\Repo\WikibaseRepo::getDataAccessSettings ( ContainerInterface  $services = null)
static

◆ getDatabaseTypeIdsStore()

static Wikibase\Repo\WikibaseRepo::getDatabaseTypeIdsStore ( ContainerInterface  $services = null)
static

Do not use this service directly.

Instead, use the service(s) for the interface(s) you need:

◆ getDataTypeDefinitions()

static Wikibase\Repo\WikibaseRepo::getDataTypeDefinitions ( ContainerInterface  $services = null)
static

◆ getDataTypeFactory()

static Wikibase\Repo\WikibaseRepo::getDataTypeFactory ( ContainerInterface  $services = null)
static

◆ getDataTypeValidatorFactory()

static Wikibase\Repo\WikibaseRepo::getDataTypeValidatorFactory ( ContainerInterface  $services = null)
static

◆ getDataValueDeserializer()

static Wikibase\Repo\WikibaseRepo::getDataValueDeserializer ( ContainerInterface  $services = null)
static
Returns
DataValueDeserializer

◆ getDataValueFactory()

static Wikibase\Repo\WikibaseRepo::getDataValueFactory ( ContainerInterface  $services = null)
static

◆ 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()

static Wikibase\Repo\WikibaseRepo::getEntityArticleIdLookup ( ContainerInterface  $services = null)
static

◆ getEntityChangeFactory()

static Wikibase\Repo\WikibaseRepo::getEntityChangeFactory ( ContainerInterface  $services = null)
static

◆ getEntityChangeOpProvider()

static Wikibase\Repo\WikibaseRepo::getEntityChangeOpProvider ( ContainerInterface  $services = null)
static

◆ getEntityConstraintProvider()

static Wikibase\Repo\WikibaseRepo::getEntityConstraintProvider ( ContainerInterface  $services = null)
static

◆ getEntityContentDataCodec()

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

◆ getEntityContentFactory()

static Wikibase\Repo\WikibaseRepo::getEntityContentFactory ( ContainerInterface  $services = null)
static

◆ getEntityDataFormatProvider()

Wikibase\Repo\WikibaseRepo::getEntityDataFormatProvider ( )

◆ getEntityDataUriManager()

Wikibase\Repo\WikibaseRepo::getEntityDataUriManager ( )

◆ getEntityDiffer()

static Wikibase\Repo\WikibaseRepo::getEntityDiffer ( ContainerInterface  $services = null)
static

◆ getEntityDiffVisualizerFactory()

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

◆ getEntityExistenceChecker()

static Wikibase\Repo\WikibaseRepo::getEntityExistenceChecker ( ContainerInterface  $services = null)
static

◆ getEntityFactory()

static Wikibase\Repo\WikibaseRepo::getEntityFactory ( ContainerInterface  $services = null)
static

◆ getEntityIdComposer()

static Wikibase\Repo\WikibaseRepo::getEntityIdComposer ( ContainerInterface  $services = null)
static

◆ getEntityIdHtmlLinkFormatterFactory()

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

◆ getEntityIdLookup()

static Wikibase\Repo\WikibaseRepo::getEntityIdLookup ( ContainerInterface  $services = null)
static

◆ getEntityIdParser()

static Wikibase\Repo\WikibaseRepo::getEntityIdParser ( ContainerInterface  $services = null)
static

◆ getEntityLinkFormatterFactory()

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

◆ getEntityLookup()

static Wikibase\Repo\WikibaseRepo::getEntityLookup ( ContainerInterface  $services = null)
static

Get a caching entity lookup that reads from a replica DB.

If you need different caching or lookup modes, use Store::getEntityLookup() instead.

◆ getEntityMetaTagsCreatorFactory()

Wikibase\Repo\WikibaseRepo::getEntityMetaTagsCreatorFactory ( )

◆ getEntityNamespaceLookup()

static Wikibase\Repo\WikibaseRepo::getEntityNamespaceLookup ( ContainerInterface  $services = null)
static

◆ getEntityParserOutputGenerator()

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

◆ getEntityParserOutputGeneratorFactory()

Wikibase\Repo\WikibaseRepo::getEntityParserOutputGeneratorFactory ( )

◆ getEntityPatcher()

static Wikibase\Repo\WikibaseRepo::getEntityPatcher ( ContainerInterface  $services = null)
static

◆ getEntityPermissionChecker()

static Wikibase\Repo\WikibaseRepo::getEntityPermissionChecker ( ContainerInterface  $services = null)
static

◆ getEntityRdfBuilderFactory()

static Wikibase\Repo\WikibaseRepo::getEntityRdfBuilderFactory ( ContainerInterface  $services = null)
static

◆ getEntityRedirectChecker()

static Wikibase\Repo\WikibaseRepo::getEntityRedirectChecker ( ContainerInterface  $services = null)
static

◆ 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 ( )
Returns
callable[]

◆ getEntitySourceDefinitions()

static Wikibase\Repo\WikibaseRepo::getEntitySourceDefinitions ( ContainerInterface  $services = null)
static

◆ getEntityStore()

static Wikibase\Repo\WikibaseRepo::getEntityStore ( ContainerInterface  $services = null)
static

◆ getEntityStoreFactoryCallbacks()

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

◆ getEntityStoreWatcher()

static Wikibase\Repo\WikibaseRepo::getEntityStoreWatcher ( ContainerInterface  $services = null)
static

◆ getEntityTitleLookup()

static Wikibase\Repo\WikibaseRepo::getEntityTitleLookup ( ContainerInterface  $services = null)
static

◆ getEntityTitleStoreLookup()

static Wikibase\Repo\WikibaseRepo::getEntityTitleStoreLookup ( ContainerInterface  $services = null)
static

◆ getEntityTitleTextLookup()

static Wikibase\Repo\WikibaseRepo::getEntityTitleTextLookup ( ContainerInterface  $services = null)
static

◆ getEntityTypeDefinitions()

static Wikibase\Repo\WikibaseRepo::getEntityTypeDefinitions ( ContainerInterface  $services = null)
static

◆ 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()

static Wikibase\Repo\WikibaseRepo::getEntityUrlLookup ( ContainerInterface  $services = null)
static

◆ 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()

static Wikibase\Repo\WikibaseRepo::getExternalFormatStatementDeserializer ( ContainerInterface  $services = null)
static

Returns a deserializer to deserialize statements in current serialization only.

◆ getFieldDefinitionsByType()

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

Get field definitions for entity depending on its type.

Parameters
string$typeEntity type
Returns
FieldDefinitions

◆ getFulltextSearchTypes()

Wikibase\Repo\WikibaseRepo::getFulltextSearchTypes ( )

Get entity search helper callbacks.

Returns
string[]

◆ getIdGenerator()

static Wikibase\Repo\WikibaseRepo::getIdGenerator ( ContainerInterface  $services = null)
static

◆ getInternalFormatDeserializerFactory()

static Wikibase\Repo\WikibaseRepo::getInternalFormatDeserializerFactory ( ContainerInterface  $services = null)
static

◆ getInternalFormatEntityDeserializer()

static Wikibase\Repo\WikibaseRepo::getInternalFormatEntityDeserializer ( ContainerInterface  $services = null)
static

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

◆ getItemTermsCollisionDetector()

static Wikibase\Repo\WikibaseRepo::getItemTermsCollisionDetector ( ContainerInterface  $services = null)
static

◆ getItemTermStoreWriter()

static Wikibase\Repo\WikibaseRepo::getItemTermStoreWriter ( ContainerInterface  $services = null)
static

◆ getItemUrlParser()

static Wikibase\Repo\WikibaseRepo::getItemUrlParser ( ContainerInterface  $services = null)
static

◆ getItemVocabularyBaseUri()

static Wikibase\Repo\WikibaseRepo::getItemVocabularyBaseUri ( ContainerInterface  $services = null)
static

◆ getKartographerEmbeddingHandler()

static Wikibase\Repo\WikibaseRepo::getKartographerEmbeddingHandler ( ContainerInterface  $services = null)
static

◆ getLanguageFallbackChainFactory()

static Wikibase\Repo\WikibaseRepo::getLanguageFallbackChainFactory ( ContainerInterface  $services = null)
static

◆ getLanguageFallbackLabelDescriptionLookupFactory()

static Wikibase\Repo\WikibaseRepo::getLanguageFallbackLabelDescriptionLookupFactory ( ContainerInterface  $services = null)
static

◆ 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()

static Wikibase\Repo\WikibaseRepo::getLinkTargetEntityIdLookup ( ContainerInterface  $services = null)
static

◆ getLocalEntityNamespaceLookup()

static Wikibase\Repo\WikibaseRepo::getLocalEntityNamespaceLookup ( ContainerInterface  $services = null)
static

◆ getLocalEntityNamespaces()

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

◆ getLocalEntitySource()

static Wikibase\Repo\WikibaseRepo::getLocalEntitySource ( ContainerInterface  $services = null)
static

◆ getLocalEntityTypes()

static Wikibase\Repo\WikibaseRepo::getLocalEntityTypes ( ContainerInterface  $services = null)
static

◆ getLocalRepoWikiPageMetaDataAccessor()

static Wikibase\Repo\WikibaseRepo::getLocalRepoWikiPageMetaDataAccessor ( ContainerInterface  $services = null)
static

◆ getLogger()

static Wikibase\Repo\WikibaseRepo::getLogger ( ContainerInterface  $services = null)
static

◆ getMessageParameterFormatter()

static Wikibase\Repo\WikibaseRepo::getMessageParameterFormatter ( ContainerInterface  $services = null)
static

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.

◆ getMonolingualTextLanguages()

static Wikibase\Repo\WikibaseRepo::getMonolingualTextLanguages ( ContainerInterface  $services = null)
static

◆ getPrefetchingTermLookup()

static Wikibase\Repo\WikibaseRepo::getPrefetchingTermLookup ( ContainerInterface  $services = null)
static

◆ getPrefetchingTermLookupFactory()

static Wikibase\Repo\WikibaseRepo::getPrefetchingTermLookupFactory ( ContainerInterface  $services = null)
static

◆ getPropertyDataTypeLookup()

Wikibase\Repo\WikibaseRepo::getPropertyDataTypeLookup ( )

◆ getPropertyLookup()

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

◆ getPropertyTermsCollisionDetector()

static Wikibase\Repo\WikibaseRepo::getPropertyTermsCollisionDetector ( ContainerInterface  $services = null)
static

◆ getPropertyTermStoreWriter()

static Wikibase\Repo\WikibaseRepo::getPropertyTermStoreWriter ( ContainerInterface  $services = null)
static

◆ getPropertyValueExpertsModule()

static Wikibase\Repo\WikibaseRepo::getPropertyValueExpertsModule ( ContainerInterface  $services = null)
static

◆ getRdfVocabulary()

static Wikibase\Repo\WikibaseRepo::getRdfVocabulary ( ContainerInterface  $services = null)
static

◆ getSettings()

static Wikibase\Repo\WikibaseRepo::getSettings ( ContainerInterface  $services = null)
static

◆ getSettingsValueProvider()

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

◆ getSingleEntitySourceServicesFactory()

static Wikibase\Repo\WikibaseRepo::getSingleEntitySourceServicesFactory ( ContainerInterface  $services = null)
static
Deprecated:
DO NOT USE THIS SERVICE! This is just a temporary convenience placeholder until we finish migrating SingleEntitySourceServices.

Will be removed with T277731

◆ getSiteLinkBadgeChangeOpSerializationValidator()

static Wikibase\Repo\WikibaseRepo::getSiteLinkBadgeChangeOpSerializationValidator ( ContainerInterface  $services = null)
static

◆ 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()

static Wikibase\Repo\WikibaseRepo::getStatementGuidParser ( ContainerInterface  $services = null)
static

◆ getStatementGuidValidator()

static Wikibase\Repo\WikibaseRepo::getStatementGuidValidator ( ContainerInterface  $service = null)
static

◆ getStorageEntitySerializer()

static Wikibase\Repo\WikibaseRepo::getStorageEntitySerializer ( ContainerInterface  $services = null)
static

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

◆ getStore()

static Wikibase\Repo\WikibaseRepo::getStore ( ContainerInterface  $services = null)
static

◆ getStringNormalizer()

static Wikibase\Repo\WikibaseRepo::getStringNormalizer ( ContainerInterface  $services = null)
static

◆ getSummaryFormatter()

Wikibase\Repo\WikibaseRepo::getSummaryFormatter ( )

◆ getTermBuffer()

static Wikibase\Repo\WikibaseRepo::getTermBuffer ( ContainerInterface  $services = null)
static

◆ getTermFallbackCache()

static Wikibase\Repo\WikibaseRepo::getTermFallbackCache ( ContainerInterface  $services = null)
static

◆ getTermFallbackCacheFactory()

static Wikibase\Repo\WikibaseRepo::getTermFallbackCacheFactory ( ContainerInterface  $services = null)
static

◆ getTermLookup()

static Wikibase\Repo\WikibaseRepo::getTermLookup ( ContainerInterface  $services = null)
static

◆ getTermsCollisionDetectorFactory()

static Wikibase\Repo\WikibaseRepo::getTermsCollisionDetectorFactory ( ContainerInterface  $services = null)
static

◆ getTermsLanguages()

static Wikibase\Repo\WikibaseRepo::getTermsLanguages ( ContainerInterface  $services = null)
static

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

◆ getTermStoreWriterFactory()

static Wikibase\Repo\WikibaseRepo::getTermStoreWriterFactory ( ContainerInterface  $services = null)
static

◆ getTermValidatorFactory()

static Wikibase\Repo\WikibaseRepo::getTermValidatorFactory ( ContainerInterface  $services = null)
static

◆ getTypeIdsAcquirer()

static Wikibase\Repo\WikibaseRepo::getTypeIdsAcquirer ( ContainerInterface  $services = null)
static

◆ getTypeIdsLookup()

static Wikibase\Repo\WikibaseRepo::getTypeIdsLookup ( ContainerInterface  $services = null)
static

◆ getTypeIdsResolver()

static Wikibase\Repo\WikibaseRepo::getTypeIdsResolver ( ContainerInterface  $services = null)
static

◆ getUnitConverter()

static Wikibase\Repo\WikibaseRepo::getUnitConverter ( ContainerInterface  $services = null)
static

◆ getUserLanguage()

static Wikibase\Repo\WikibaseRepo::getUserLanguage ( ContainerInterface  $services = null)
static
Deprecated:
Exceptions
MWExceptionwhen called too early

◆ getValidatorErrorLocalizer()

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

◆ getValueFormatterFactory()

static Wikibase\Repo\WikibaseRepo::getValueFormatterFactory ( ContainerInterface  $services = null)
static

◆ getValueParserFactory()

static Wikibase\Repo\WikibaseRepo::getValueParserFactory ( ContainerInterface  $services = null)
static

◆ getValueSnakRdfBuilderFactory()

static Wikibase\Repo\WikibaseRepo::getValueSnakRdfBuilderFactory ( ContainerInterface  $services = null)
static

◆ getViewFactory()

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

◆ getWikibaseContentLanguages()

static Wikibase\Repo\WikibaseRepo::getWikibaseContentLanguages ( ContainerInterface  $services = null)
static

◆ getWikibaseServices()

static Wikibase\Repo\WikibaseRepo::getWikibaseServices ( ContainerInterface  $services = null)
static

◆ 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

◆ newFederatedPropertiesServiceFactory()

Wikibase\Repo\WikibaseRepo::newFederatedPropertiesServiceFactory ( )

◆ 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 ( )

◆ newSummaryFormatter()

Wikibase\Repo\WikibaseRepo::newSummaryFormatter ( )
private

◆ 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

◆ 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

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

Member Data Documentation

◆ $cachingCommonsMediaFileNameLookup

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

◆ $exceptionLocalizer

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

◆ $instance

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

◆ $propertyDataTypeLookup

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

◆ $snakFactory

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

◆ $snakFormatterBuilders

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

◆ $snakFormatterFactory

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

◆ $summaryFormatter

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

◆ $validatorBuilders

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

◆ $valueFormatterBuilders

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

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