Wikibase
MediaWiki Wikibase extension
|
Top level factory for the WikibaseRepo extension. More...
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 |
Top level factory for the WikibaseRepo extension.
Wikibase\Repo\WikibaseRepo::__construct | ( | ) |
|
static |
|
static |
|
static |
Entity serializer that generates the full (expanded) serialization.
Wikibase\Repo\WikibaseRepo::getApiHelperFactory | ( | IContextSource | $context | ) |
IContextSource | $context |
|
static |
|
static |
|
private |
|
static |
Wikibase\Repo\WikibaseRepo::getChangeOpDeserializerFactory | ( | ) |
TODO: this should be probably cached?
Wikibase\Repo\WikibaseRepo::getChangeOpFactoryProvider | ( | ) |
|
static |
|
static |
Entity serializer that generates the most compact serialization.
Wikibase\Repo\WikibaseRepo::getConceptBaseUris | ( | ) |
|
private |
MWException | when called to early |
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).
|
static |
Get the mapping of entity types => content models.
|
static |
|
static |
Do not use this service directly.
Instead, use the service(s) for the interface(s) you need:
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
IMPORTANT: Use only when it is not feasible to inject an instance properly.
|
static |
|
static |
|
static |
Wikibase\Repo\WikibaseRepo::getEnabledEntityTypes | ( | ) |
|
static |
|
static |
|
static |
|
static |
Wikibase\Repo\WikibaseRepo::getEntityContentDataCodec | ( | ) |
|
static |
Wikibase\Repo\WikibaseRepo::getEntityDataFormatProvider | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityDataUriManager | ( | ) |
|
static |
Wikibase\Repo\WikibaseRepo::getEntityDiffVisualizerFactory | ( | IContextSource | $contextSource | ) |
IContextSource | $contextSource |
|
static |
|
static |
|
static |
Wikibase\Repo\WikibaseRepo::getEntityIdHtmlLinkFormatterFactory | ( | ) |
|
static |
|
static |
Wikibase\Repo\WikibaseRepo::getEntityLinkFormatterFactory | ( | Language | $language | ) |
|
static |
Get a caching entity lookup that reads from a replica DB.
If you need different caching or lookup modes, use Store::getEntityLookup() instead.
Wikibase\Repo\WikibaseRepo::getEntityMetaTagsCreatorFactory | ( | ) |
|
static |
Wikibase\Repo\WikibaseRepo::getEntityParserOutputGenerator | ( | Language | $userLanguage | ) |
Wikibase\Repo\WikibaseRepo::getEntityParserOutputGeneratorFactory | ( | ) |
|
static |
|
static |
|
static |
|
static |
Wikibase\Repo\WikibaseRepo::getEntityRevisionLookup | ( | $cache = Store::LOOKUP_CACHING_ENABLED | ) |
string | $cache | One 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) |
Wikibase\Repo\WikibaseRepo::getEntityRevisionLookupFactoryCallbacks | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntitySearchHelperCallbacks | ( | ) |
|
static |
|
static |
Wikibase\Repo\WikibaseRepo::getEntityStoreFactoryCallbacks | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
Wikibase\Repo\WikibaseRepo::getEntityTypesConfigValue | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityTypeToRepositoryMapping | ( | ) |
|
static |
Wikibase\Repo\WikibaseRepo::getEntityViewFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getExceptionLocalizer | ( | ) |
|
private |
ValueFormatter | $formatter |
|
static |
Returns a deserializer to deserialize statements in current serialization only.
Wikibase\Repo\WikibaseRepo::getFieldDefinitionsByType | ( | $type | ) |
Get field definitions for entity depending on its type.
string | $type | Entity type |
Wikibase\Repo\WikibaseRepo::getFulltextSearchTypes | ( | ) |
Get entity search helper callbacks.
|
static |
|
static |
|
static |
Returns a deserializer to deserialize entities in both current and legacy serialization.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Wikibase\Repo\WikibaseRepo::getLanguageNameLookup | ( | ) |
|
private |
Detects blobs that may be using a legacy serialization format. WikibaseRepo uses this for the $legacyExportFormatDetector parameter when constructing EntityHandlers.
string | $blob | |
string | $format |
|
static |
|
static |
Wikibase\Repo\WikibaseRepo::getLocalEntityNamespaces | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
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.
|
static |
|
static |
|
static |
Wikibase\Repo\WikibaseRepo::getPropertyDataTypeLookup | ( | ) |
Wikibase\Repo\WikibaseRepo::getPropertyLookup | ( | $cacheMode = Store::LOOKUP_CACHING_ENABLED | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
Wikibase\Repo\WikibaseRepo::getSettingsValueProvider | ( | $jsSetting, | |
$phpSetting | |||
) |
|
static |
Will be removed with T277731
|
static |
Wikibase\Repo\WikibaseRepo::getSiteLookup | ( | ) |
Wikibase\Repo\WikibaseRepo::getSnakFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getSnakFormatterFactory | ( | ) |
Returns a OutputFormatSnakFormatterFactory the provides SnakFormatters for different output formats.
|
static |
|
static |
|
static |
Returns the entity serializer that generates serialization that is used in the storage layer.
|
static |
|
static |
Wikibase\Repo\WikibaseRepo::getSummaryFormatter | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Get a ContentLanguages object holding the languages available for labels, descriptions and aliases.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
MWException | when called too early |
Wikibase\Repo\WikibaseRepo::getValidatorErrorLocalizer | ( | ) |
|
static |
|
static |
|
static |
Wikibase\Repo\WikibaseRepo::getViewFactory | ( | ) |
|
static |
|
static |
Wikibase\Repo\WikibaseRepo::inFederatedPropertyMode | ( | ) |
Wikibase\Repo\WikibaseRepo::newEditEntityFactory | ( | IContextSource | $context = null | ) |
IContextSource | null | $context |
|
private |
IContextSource | $context |
Wikibase\Repo\WikibaseRepo::newFederatedPropertiesServiceFactory | ( | ) |
|
staticprivate |
IMPORTANT: Use only when it is not feasible to inject an instance properly.
MWException |
Wikibase\Repo\WikibaseRepo::newItemHandler | ( | ) |
Wikibase\Repo\WikibaseRepo::newItemMergeInteractor | ( | IContextSource | $context | ) |
IContextSource | $context |
Wikibase\Repo\WikibaseRepo::newItemRedirectCreationInteractor | ( | User | $user, |
IContextSource | $context | ||
) |
User | $user | |
IContextSource | $context |
Wikibase\Repo\WikibaseRepo::newPropertyDataTypeLookup | ( | ) |
|
private |
Wikibase\Repo\WikibaseRepo::newPropertyHandler | ( | ) |
Wikibase\Repo\WikibaseRepo::newPropertyInfoBuilder | ( | ) |
|
private |
Wikibase\Repo\WikibaseRepo::newTermSearchInteractor | ( | $displayLanguageCode | ) |
string | $displayLanguageCode |
Wikibase\Repo\WikibaseRepo::newValidatorBuilders | ( | ) |
Returns a low level factory object for creating validators for well known data types.
|
private |
Returns a low level factory object for creating formatters for well known data types.
WikibaseValueFormatterBuilders | $valueFormatterBuilders |
|
private |
Returns a low level factory object for creating formatters for well known data types.
array | $thumbLimits |
|
static |
|
private |
Guard against Federated properties services being constructed in wiring when feature is disabled.
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
staticprivate |
|
staticprivate |