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. | |
static | getDefaultValidatorBuilders () |
static | getDefaultValueFormatterBuilders () |
static | getDefaultSnakFormatterBuilders () |
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 |
Top level factory for the WikibaseRepo extension.
Wikibase\Repo\WikibaseRepo::__construct | ( | SettingsArray | $settings, |
DataTypeDefinitions | $dataTypeDefinitions, | ||
EntityTypeDefinitions | $entityTypeDefinitions, | ||
EntitySourceDefinitions | $entitySourceDefinitions | ||
) |
|
private |
Returns a deserializer to deserialize entities in current serialization only.
Wikibase\Repo\WikibaseRepo::getAllTypesEntitySerializer | ( | ) |
Wikibase\Repo\WikibaseRepo::getApiHelperFactory | ( | IContextSource | $context | ) |
IContextSource | $context |
Wikibase\Repo\WikibaseRepo::getBaseDataModelDeserializerFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getBaseDataModelSerializerFactory | ( | ) |
|
private |
|
private |
Wikibase\Repo\WikibaseRepo::getChangeNotifier | ( | ) |
Wikibase\Repo\WikibaseRepo::getChangeOpDeserializerFactory | ( | ) |
TODO: this should be probably cached?
Wikibase\Repo\WikibaseRepo::getChangeOpFactoryProvider | ( | ) |
Wikibase\Repo\WikibaseRepo::getCompactBaseDataModelSerializerFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getCompactEntitySerializer | ( | ) |
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).
Wikibase\Repo\WikibaseRepo::getContentModelMappings | ( | ) |
Get the mapping of entity types => content models.
Wikibase\Repo\WikibaseRepo::getDataAccessSettings | ( | ) |
Wikibase\Repo\WikibaseRepo::getDataTypeDefinitions | ( | ) |
Wikibase\Repo\WikibaseRepo::getDataTypeFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getDataTypeValidatorFactory | ( | ) |
|
private |
Wikibase\Repo\WikibaseRepo::getDataValueFactory | ( | ) |
|
staticprivate |
|
staticprivate |
|
static |
IMPORTANT: Use only when it is not feasible to inject an instance properly.
|
static |
|
static |
|
static |
Wikibase\Repo\WikibaseRepo::getEnabledEntityTypes | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityArticleIdLookup | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityChangeFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityChangeOpProvider | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityConstraintProvider | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityContentDataCodec | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityContentFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityDiffer | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityDiffVisualizerFactory | ( | IContextSource | $contextSource | ) |
IContextSource | $contextSource |
Wikibase\Repo\WikibaseRepo::getEntityExistenceChecker | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityIdComposer | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityIdHtmlLinkFormatterFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityIdLookup | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityIdParser | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityLinkFormatterFactory | ( | Language | $language | ) |
Wikibase\Repo\WikibaseRepo::getEntityLookup | ( | $cache = Store::LOOKUP_CACHING_ENABLED , |
|
$lookupMode = LookupConstants::LATEST_FROM_REPLICA |
|||
) |
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) |
string | $lookupMode | One of the EntityRevisionLookup lookup mode constants TODO this should perhaps not refer to EntityRevisionLookup |
Wikibase\Repo\WikibaseRepo::getEntityMetaTagsCreatorFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityNamespaceLookup | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityParserOutputGenerator | ( | Language | $userLanguage | ) |
Wikibase\Repo\WikibaseRepo::getEntityParserOutputGeneratorFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityPatcher | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityPermissionChecker | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityRdfBuilderFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityRedirectChecker | ( | ) |
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 | ( | ) |
Get entity search helper callbacks.
Wikibase\Repo\WikibaseRepo::getEntitySourceDefinitions | ( | ) |
|
staticprivate |
Wikibase\Repo\WikibaseRepo::getEntityStore | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityStoreFactoryCallbacks | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityStoreWatcher | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityTitleLookup | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityTitleTextLookup | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityTypesConfigValue | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityTypeToRepositoryMapping | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityUrlLookup | ( | ) |
Wikibase\Repo\WikibaseRepo::getEntityViewFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getExceptionLocalizer | ( | ) |
|
private |
ValueFormatter | $formatter |
Wikibase\Repo\WikibaseRepo::getExternalFormatStatementDeserializer | ( | ) |
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 |
|
private |
@fixme this is duplicated in WikibaseClient...
Wikibase\Repo\WikibaseRepo::getFulltextSearchTypes | ( | ) |
Get entity search helper callbacks.
Wikibase\Repo\WikibaseRepo::getHtmlCacheUpdater | ( | ) |
|
private |
Wikibase\Repo\WikibaseRepo::getInternalFormatEntityDeserializer | ( | ) |
Returns a deserializer to deserialize entities in both current and legacy serialization.
Wikibase\Repo\WikibaseRepo::getInternalFormatStatementDeserializer | ( | ) |
Returns a deserializer to deserialize statements in both current and legacy serialization.
Wikibase\Repo\WikibaseRepo::getItemLookup | ( | $cacheMode = Store::LOOKUP_CACHING_ENABLED | ) |
Wikibase\Repo\WikibaseRepo::getItemTermsCollisionDetector | ( | ) |
Wikibase\Repo\WikibaseRepo::getItemTermStoreArrayForWriters | ( | $itemTermsMigrationStages, | |
$oldItemTermStore, | |||
$newItemTermStore | |||
) |
array | $itemTermsMigrationStages | |
mixed | ItemTermStoreWriter | $oldItemTermStore | |
mixed | ItemTermStoreWriter | $newItemTermStore |
Wikibase\Repo\WikibaseRepo::getItemTermStoreWriters | ( | ) |
Wikibase\Repo\WikibaseRepo::getItemUrlParser | ( | ) |
|
private |
Wikibase\Repo\WikibaseRepo::getKartographerEmbeddingHandler | ( | ) |
|
private |
Wikibase\Repo\WikibaseRepo::getLanguageFallbackChainFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getLanguageFallbackLabelDescriptionLookupFactory | ( | ) |
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 |
Wikibase\Repo\WikibaseRepo::getLinkTargetEntityIdLookup | ( | ) |
Wikibase\Repo\WikibaseRepo::getLocalEntityNamespaceLookup | ( | ) |
Wikibase\Repo\WikibaseRepo::getLocalEntityNamespaces | ( | ) |
Wikibase\Repo\WikibaseRepo::getLocalEntitySource | ( | ) |
Wikibase\Repo\WikibaseRepo::getLocalEntityTypes | ( | ) |
Wikibase\Repo\WikibaseRepo::getLocalRepoWikiPageMetaDataAccessor | ( | ) |
Wikibase\Repo\WikibaseRepo::getLogger | ( | ) |
|
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.
|
private |
Wikibase\Repo\WikibaseRepo::getNewTermStoreWriterFactory | ( | ) |
|
private |
|
private |
Wikibase\Repo\WikibaseRepo::getPrefetchingTermLookup | ( | ) |
Wikibase\Repo\WikibaseRepo::getPropertyDataTypeLookup | ( | ) |
Wikibase\Repo\WikibaseRepo::getPropertyLookup | ( | $cacheMode = Store::LOOKUP_CACHING_ENABLED | ) |
Wikibase\Repo\WikibaseRepo::getPropertyTermsCollisionDetector | ( | ) |
Wikibase\Repo\WikibaseRepo::getPropertyTermStoreWriters | ( | ) |
Wikibase\Repo\WikibaseRepo::getPropertyValueExpertsModule | ( | ) |
Wikibase\Repo\WikibaseRepo::getRdfVocabulary | ( | ) |
Wikibase\Repo\WikibaseRepo::getSettings | ( | ) |
Wikibase\Repo\WikibaseRepo::getSettingsValueProvider | ( | $jsSetting, | |
$phpSetting | |||
) |
Wikibase\Repo\WikibaseRepo::getSiteLinkBadgeChangeOpSerializationValidator | ( | ) |
Wikibase\Repo\WikibaseRepo::getSiteLookup | ( | ) |
Wikibase\Repo\WikibaseRepo::getSnakFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getSnakFormatterFactory | ( | ) |
Returns a OutputFormatSnakFormatterFactory the provides SnakFormatters for different output formats.
Wikibase\Repo\WikibaseRepo::getStatementGuidParser | ( | ) |
Wikibase\Repo\WikibaseRepo::getStatementGuidValidator | ( | ) |
Wikibase\Repo\WikibaseRepo::getStatementSerializer | ( | ) |
Wikibase\Repo\WikibaseRepo::getStorageEntitySerializer | ( | ) |
Returns the entity serializer that generates serialization that is used in the storage layer.
Wikibase\Repo\WikibaseRepo::getStore | ( | ) |
Wikibase\Repo\WikibaseRepo::getStringNormalizer | ( | ) |
Wikibase\Repo\WikibaseRepo::getSummaryFormatter | ( | ) |
Wikibase\Repo\WikibaseRepo::getTermBuffer | ( | ) |
Wikibase\Repo\WikibaseRepo::getTermLookup | ( | ) |
Wikibase\Repo\WikibaseRepo::getTermsCollisionDetectorFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getTermsLanguages | ( | ) |
Get a ContentLanguages object holding the languages available for labels, descriptions and aliases.
Wikibase\Repo\WikibaseRepo::getTermValidatorFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getUnitConverter | ( | ) |
Get configure unit converter.
|
private |
Creates configured unit storage.
Configuration is in unitStorage parameter, in getObjectFromSpec format.
Wikibase\Repo\WikibaseRepo::getUserLanguage | ( | ) |
MWException | when called to early |
Wikibase\Repo\WikibaseRepo::getValidatorErrorLocalizer | ( | ) |
Wikibase\Repo\WikibaseRepo::getValueFormatterFactory | ( | ) |
Returns a OutputFormatValueFormatterFactory the provides ValueFormatters for different output formats.
Wikibase\Repo\WikibaseRepo::getValueParserFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getValueSnakRdfBuilderFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getViewFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::getWikibaseContentLanguages | ( | ) |
Wikibase\Repo\WikibaseRepo::getWikibaseServices | ( | ) |
Wikibase\Repo\WikibaseRepo::inFederatedPropertyMode | ( | ) |
Wikibase\Repo\WikibaseRepo::newEditEntityFactory | ( | IContextSource | $context = null | ) |
IContextSource | null | $context |
|
private |
IContextSource | $context |
|
private |
Wikibase\Repo\WikibaseRepo::newFederatedPropertiesServiceFactory | ( | ) |
Wikibase\Repo\WikibaseRepo::newIdGenerator | ( | ) |
|
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 |
|
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 |
Gaurd against Federated properties services being constructed in wiring when feature is disabled.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |