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 ()
 
 getUserLanguage ()
 
 getEntityContentFactory ()
 
 getEntityChangeFactory ()
 
 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 ()
 
 getEntityIdComposer ()
 
 getChangeOpFactoryProvider ()
 
 getSiteLinkBadgeChangeOpSerializationValidator ()
 
 getEntityChangeOpProvider ()
 
 getChangeOpDeserializerFactory ()
 TODO: this should be probably cached? More...
 
 getLanguageFallbackChainFactory ()
 
 getLanguageFallbackLabelDescriptionLookupFactory ()
 
 newIdGenerator ()
 
 getStore ()
 
 getSnakFormatterFactory ()
 Returns a OutputFormatSnakFormatterFactory the provides SnakFormatters for different output formats. More...
 
 getTermBuffer ()
 
 getTermLookup ()
 
 getPrefetchingTermLookup ()
 
 getItemUrlParser ()
 
 getRdfVocabulary ()
 
 getExceptionLocalizer ()
 
 getSummaryFormatter ()
 
 getEntityPermissionChecker ()
 
 getTermValidatorFactory ()
 
 getTermsCollisionDetectorFactory ()
 
 getPropertyTermsCollisionDetector ()
 
 getItemTermsCollisionDetector ()
 
 getEntityConstraintProvider ()
 
 getValidatorErrorLocalizer ()
 
 getSiteLookup ()
 
 getChangeNotifier ()
 
 getEntityFactory ()
 
 getEnabledEntityTypes ()
 
 getEntityContentDataCodec ()
 
 getBaseDataModelDeserializerFactory ()
 
 getBaseDataModelSerializerFactory ()
 
 getCompactBaseDataModelSerializerFactory ()
 
 getInternalFormatEntityDeserializer ()
 Returns a deserializer to deserialize entities in both current and legacy serialization. More...
 
 getAllTypesEntitySerializer ()
 
 getCompactEntitySerializer ()
 
 getStorageEntitySerializer ()
 Returns the entity serializer that generates serialization that is used in the storage layer. More...
 
 getInternalFormatStatementDeserializer ()
 Returns a deserializer to deserialize statements in both current and legacy serialization. More...
 
 getExternalFormatStatementDeserializer ()
 Returns a deserializer to deserialize statements in current serialization only. More...
 
 getStatementSerializer ()
 
 newItemHandler ()
 
 getPropertyTermStoreWriter ()
 
 getItemTermStoreWriter ()
 
 getNewTermStoreWriterFactory ()
 
 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 ()
 
 getEntityNamespaceLookup ()
 
 getLocalEntityNamespaceLookup ()
 
 getEntityIdHtmlLinkFormatterFactory ()
 
 getEntityViewFactory ()
 
 getEntityMetaTagsCreatorFactory ()
 
 getEntityDataFormatProvider ()
 
 getEntityDataUriManager ()
 
 getEntityParserOutputGeneratorFactory ()
 
 getEntityParserOutputGenerator (Language $userLanguage)
 
 getViewFactory ()
 
 getDataTypeValidatorFactory ()
 
 getWikibaseContentLanguages ()
 
 getTermsLanguages ()
 Get a ContentLanguages object holding the languages available for labels, descriptions and aliases. More...
 
 getEntityTypesConfigValue ()
 
 getSettingsValueProvider ( $jsSetting, $phpSetting)
 
 getUnitConverter ()
 Get configure unit converter. More...
 
 getEntityRdfBuilderFactory ()
 
 getEntityDiffVisualizerFactory (IContextSource $contextSource)
 
 getEntityTypeToRepositoryMapping ()
 
 getConceptBaseUris ()
 
 getWikibaseServices ()
 
 getDataAccessSettings ()
 
 getEntitySearchHelperCallbacks ()
 
 getEntityLinkFormatterFactory (Language $language)
 
 getFulltextSearchTypes ()
 Get entity search helper callbacks. More...
 
 getTermFallbackCache ()
 
 getTermFallbackCacheFactory ()
 
 inFederatedPropertyMode ()
 
 newFederatedPropertiesServiceFactory ()
 
 getLinkTargetEntityIdLookup ()
 

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 getDataTypeFactory (ContainerInterface $services=null)
 
static getValueParserFactory (ContainerInterface $services=null)
 
static getDataValueFactory (ContainerInterface $services=null)
 
static getEntityTypeDefinitions (ContainerInterface $services=null)
 
static getEntityDiffer (ContainerInterface $services=null)
 
static getEntityPatcher (ContainerInterface $services=null)
 
static getEntityIdParser (ContainerInterface $services=null)
 
static getStatementGuidParser (ContainerInterface $services=null)
 
static getStatementGuidValidator (ContainerInterface $service=null)
 
static getSettings (ContainerInterface $services=null)
 
static getLocalEntitySource (ContainerInterface $services=null)
 
static getValueFormatterFactory (ContainerInterface $services=null)
 
static getValueSnakRdfBuilderFactory (ContainerInterface $services=null)
 
static getContentModelMappings (ContainerInterface $services=null)
 Get the mapping of entity types => content models. More...
 
static getLocalEntityTypes (ContainerInterface $services=null)
 
static getDataValueDeserializer (ContainerInterface $services=null)
 
static getDataTypeDefinitions (ContainerInterface $services=null)
 
static getPropertyValueExpertsModule (ContainerInterface $services=null)
 
static getEntitySourceDefinitions (ContainerInterface $services=null)
 
static getLogger (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 ()
 
 getItemVocabularyBaseUri ()
 
 getCanonicalDocumentUrls ()
 
 getExceptionLocalizers (ValueFormatter $formatter)
 
 newSummaryFormatter ()
 
 getMessageParameterFormatter ()
 Returns a ValueFormatter suitable for converting message parameters to wikitext. More...
 
 getInternalFormatDeserializerFactory ()
 
 getAllTypesEntityDeserializer ()
 Returns a deserializer to deserialize entities in current serialization only. More...
 
 getLegacyFormatDetectorCallback ()
 
 getMonolingualTextLanguages ()
 
 getCachingCommonsMediaFileNameLookup ()
 
 getUnitStorage ()
 Creates configured unit storage. More...
 
 newEntitySourceWikibaseServices ()
 
 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
 
 $entityDeserializer = null
 
 $entityIdComposer = null
 
 $snakFormatterFactory = null
 
 $summaryFormatter = null
 
 $exceptionLocalizer = null
 
 $store = null
 
 $wikibaseContentLanguages = null
 
 $rdfVocabulary
 
 $cachingCommonsMediaFileNameLookup = null
 
 $wikibaseServices = null
 
 $entityRdfBuilderFactory = null
 
 $dataAccessSettings
 
 $termFallbackCacheFactory = 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

◆ 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

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

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

Get the mapping of entity types => content models.

◆ getDataAccessSettings()

Wikibase\Repo\WikibaseRepo::getDataAccessSettings ( )

◆ getDataTypeDefinitions()

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

◆ getDataTypeFactory()

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

◆ getDataTypeValidatorFactory()

Wikibase\Repo\WikibaseRepo::getDataTypeValidatorFactory ( )

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

Wikibase\Repo\WikibaseRepo::getEntityArticleIdLookup ( )

◆ getEntityChangeFactory()

Wikibase\Repo\WikibaseRepo::getEntityChangeFactory ( )

◆ 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

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

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

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

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

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

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

◆ getEntitySourceDefinitions()

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

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

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

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

◆ getFulltextSearchTypes()

Wikibase\Repo\WikibaseRepo::getFulltextSearchTypes ( )

Get entity search helper callbacks.

Returns
string[]

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

◆ getItemTermStoreWriter()

Wikibase\Repo\WikibaseRepo::getItemTermStoreWriter ( )

◆ getItemUrlParser()

Wikibase\Repo\WikibaseRepo::getItemUrlParser ( )

◆ getItemVocabularyBaseUri()

Wikibase\Repo\WikibaseRepo::getItemVocabularyBaseUri ( )
private

◆ getKartographerEmbeddingHandler()

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

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

Wikibase\Repo\WikibaseRepo::getLocalRepoWikiPageMetaDataAccessor ( )

◆ getLogger()

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

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

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

◆ getPropertyTermStoreWriter()

Wikibase\Repo\WikibaseRepo::getPropertyTermStoreWriter ( )

◆ getPropertyValueExpertsModule()

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

◆ getRdfVocabulary()

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

◆ getSettings()

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

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

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

◆ getStatementGuidValidator()

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

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

◆ getTermBuffer()

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

◆ getTermFallbackCache()

Wikibase\Repo\WikibaseRepo::getTermFallbackCache ( )

◆ getTermFallbackCacheFactory()

Wikibase\Repo\WikibaseRepo::getTermFallbackCacheFactory ( )

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

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

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

◆ 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

◆ $dataAccessSettings

Wikibase\Repo\WikibaseRepo::$dataAccessSettings
private

◆ $entityDeserializer

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

◆ $entityIdComposer

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

◆ $entityRdfBuilderFactory

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

◆ $exceptionLocalizer

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

◆ $instance

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

◆ $propertyDataTypeLookup

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

◆ $rdfVocabulary

Wikibase\Repo\WikibaseRepo::$rdfVocabulary
private

◆ $snakFactory

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

◆ $snakFormatterBuilders

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

◆ $snakFormatterFactory

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

◆ $store

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

◆ $summaryFormatter

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

◆ $termFallbackCacheFactory

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

◆ $validatorBuilders

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

◆ $valueFormatterBuilders

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

◆ $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: