Top level factory for the WikibaseClient extension.
More...
Top level factory for the WikibaseClient extension.
- Copyright
- GPL-2.0-or-later
- Author
- Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
-
Daniel Kinzler
◆ __construct()
◆ getAffectedPagesFinder()
Wikibase\Client\WikibaseClient::getAffectedPagesFinder |
( |
| ) |
|
|
private |
- Returns
- AffectedPagesFinder
◆ getAllTypesEntityDeserializer()
Wikibase\Client\WikibaseClient::getAllTypesEntityDeserializer |
( |
| ) |
|
|
private |
- Returns
- DispatchingDeserializer
◆ getBaseDataModelDeserializerFactory()
Wikibase\Client\WikibaseClient::getBaseDataModelDeserializerFactory |
( |
| ) |
|
- Returns
- DeserializerFactory A factory with knowledge about items, properties, and the elements they are made of, but no other entity types.
◆ getCachedDatabasePropertyLabelResolver()
Wikibase\Client\WikibaseClient::getCachedDatabasePropertyLabelResolver |
( |
|
$languageCode, |
|
|
|
$cache, |
|
|
|
$cacheDuration, |
|
|
|
$cacheKey |
|
) |
| |
|
private |
◆ getChangeHandler()
Wikibase\Client\WikibaseClient::getChangeHandler |
( |
| ) |
|
◆ getCompactBaseDataModelSerializerFactory()
Wikibase\Client\WikibaseClient::getCompactBaseDataModelSerializerFactory |
( |
| ) |
|
Returns a SerializerFactory creating serializers that generate the most compact serialization.
A factory returned has knowledge about items, properties, and the elements they are made of, but no other entity types.
- Returns
- SerializerFactory
◆ getCompactEntitySerializer()
Wikibase\Client\WikibaseClient::getCompactEntitySerializer |
( |
| ) |
|
Returns an entity serializer that generates the most compact serialization.
- Returns
- Serializer
◆ getContentLanguage()
Wikibase\Client\WikibaseClient::getContentLanguage |
( |
| ) |
|
- Exceptions
-
MWException | when 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).
◆ getDataAccessLanguageFallbackChain()
Wikibase\Client\WikibaseClient::getDataAccessLanguageFallbackChain |
( |
Language |
$language | ) |
|
- Parameters
-
- Returns
- LanguageFallbackChain
◆ getDataAccessSettings()
Wikibase\Client\WikibaseClient::getDataAccessSettings |
( |
| ) |
|
|
private |
◆ getDataAccessSnakFormatterFactory()
Wikibase\Client\WikibaseClient::getDataAccessSnakFormatterFactory |
( |
| ) |
|
- Returns
- DataAccessSnakFormatterFactory
◆ getDatabaseDomainForPropertySource()
Wikibase\Client\WikibaseClient::getDatabaseDomainForPropertySource |
( |
| ) |
|
|
private |
◆ getDatabaseDomainNameOfLocalRepo()
Wikibase\Client\WikibaseClient::getDatabaseDomainNameOfLocalRepo |
( |
| ) |
|
◆ getDataTypeFactory()
Wikibase\Client\WikibaseClient::getDataTypeFactory |
( |
| ) |
|
◆ getDataValueDeserializer()
Wikibase\Client\WikibaseClient::getDataValueDeserializer |
( |
| ) |
|
|
private |
- Returns
- DataValueDeserializer
◆ getDefaultDataTypes()
static Wikibase\Client\WikibaseClient::getDefaultDataTypes |
( |
| ) |
|
|
staticprivate |
◆ getDefaultEntityTypes()
static Wikibase\Client\WikibaseClient::getDefaultEntityTypes |
( |
| ) |
|
|
staticprivate |
◆ getDefaultInstance()
static Wikibase\Client\WikibaseClient::getDefaultInstance |
( |
|
$reset = 'noreset' | ) |
|
|
static |
IMPORTANT: Use only when it is not feasible to inject an instance properly.
- Parameters
-
string | $reset | Flag: Pass "reset" to reset the default instance |
- Returns
- self
◆ getDefaultSnakFormatterBuilders()
static Wikibase\Client\WikibaseClient::getDefaultSnakFormatterBuilders |
( |
| ) |
|
|
static |
- Warning
- This is for use with bootstrap code in WikibaseClient.datatypes.php only! Program logic should use WikibaseClient::getSnakFormatterFactory() instead!
- Returns
- WikibaseSnakFormatterBuilders
◆ getDefaultValueFormatterBuilders()
static Wikibase\Client\WikibaseClient::getDefaultValueFormatterBuilders |
( |
| ) |
|
|
static |
- Warning
- This is for use with bootstrap code in WikibaseClient.datatypes.php only! Program logic should use WikibaseClient::getSnakFormatterFactory() instead!
- Returns
- WikibaseValueFormatterBuilders
◆ getDescriptionLookup()
Wikibase\Client\WikibaseClient::getDescriptionLookup |
( |
| ) |
|
◆ getEntityChangeFactory()
Wikibase\Client\WikibaseClient::getEntityChangeFactory |
( |
| ) |
|
- Returns
- EntityChangeFactory
◆ getEntityDeserializerFactoryCallbacks()
Wikibase\Client\WikibaseClient::getEntityDeserializerFactoryCallbacks |
( |
| ) |
|
◆ getEntityDiffer()
Wikibase\Client\WikibaseClient::getEntityDiffer |
( |
| ) |
|
|
private |
◆ getEntityIdComposer()
Wikibase\Client\WikibaseClient::getEntityIdComposer |
( |
| ) |
|
◆ getEntityIdLookup()
Wikibase\Client\WikibaseClient::getEntityIdLookup |
( |
| ) |
|
◆ getEntityIdParser()
Wikibase\Client\WikibaseClient::getEntityIdParser |
( |
| ) |
|
◆ getEntityLookup()
Wikibase\Client\WikibaseClient::getEntityLookup |
( |
| ) |
|
|
private |
◆ getEntityNamespaceLookup()
Wikibase\Client\WikibaseClient::getEntityNamespaceLookup |
( |
| ) |
|
- Returns
- EntityNamespaceLookup
◆ getEntitySourceDefinitionsFromSettings()
◆ getEntitySourceOfLocalRepo()
Wikibase\Client\WikibaseClient::getEntitySourceOfLocalRepo |
( |
| ) |
|
|
private |
◆ getFormatterCache()
Wikibase\Client\WikibaseClient::getFormatterCache |
( |
| ) |
|
@fixme this is duplicated in WikibaseRepo...
- Returns
- CacheInterface
◆ getInternalFormatDeserializerFactory()
Wikibase\Client\WikibaseClient::getInternalFormatDeserializerFactory |
( |
| ) |
|
|
private |
- Returns
- InternalDeserializerFactory
◆ getInternalFormatStatementDeserializer()
Wikibase\Client\WikibaseClient::getInternalFormatStatementDeserializer |
( |
| ) |
|
Returns a deserializer to deserialize statements in both current and legacy serialization.
- Returns
- Deserializer
◆ getItemSource()
Wikibase\Client\WikibaseClient::getItemSource |
( |
| ) |
|
|
private |
◆ getLangLinkHandlerFactory()
Wikibase\Client\WikibaseClient::getLangLinkHandlerFactory |
( |
| ) |
|
◆ getLangLinkSiteGroup()
Wikibase\Client\WikibaseClient::getLangLinkSiteGroup |
( |
| ) |
|
Returns the site group ID for the group to be used for language links.
This is typically the group the client wiki itself belongs to, but can be configured to be otherwise using the languageLinkSiteGroup setting.
- Returns
- string
◆ getLanguageFallbackChainFactory()
Wikibase\Client\WikibaseClient::getLanguageFallbackChainFactory |
( |
| ) |
|
- Returns
- LanguageFallbackChainFactory
◆ getLanguageFallbackLabelDescriptionLookupFactory()
Wikibase\Client\WikibaseClient::getLanguageFallbackLabelDescriptionLookupFactory |
( |
| ) |
|
- Returns
- LanguageFallbackLabelDescriptionLookupFactory
◆ getLanguageLinkBadgeDisplay()
Wikibase\Client\WikibaseClient::getLanguageLinkBadgeDisplay |
( |
| ) |
|
- Returns
- LanguageLinkBadgeDisplay
◆ getLoadBalancerForConfiguredPropertySource()
Wikibase\Client\WikibaseClient::getLoadBalancerForConfiguredPropertySource |
( |
| ) |
|
|
private |
◆ getLogger()
Wikibase\Client\WikibaseClient::getLogger |
( |
| ) |
|
◆ getLuaEntityModules()
Wikibase\Client\WikibaseClient::getLuaEntityModules |
( |
| ) |
|
◆ getNamespaceChecker()
Wikibase\Client\WikibaseClient::getNamespaceChecker |
( |
| ) |
|
◆ getOtherProjectsSidebarGeneratorFactory()
Wikibase\Client\WikibaseClient::getOtherProjectsSidebarGeneratorFactory |
( |
| ) |
|
- Returns
- OtherProjectsSidebarGeneratorFactory
◆ getOtherProjectsSitesProvider()
Wikibase\Client\WikibaseClient::getOtherProjectsSitesProvider |
( |
| ) |
|
- Returns
- OtherProjectsSitesProvider
◆ getParserOutputDataUpdater()
Wikibase\Client\WikibaseClient::getParserOutputDataUpdater |
( |
| ) |
|
- Returns
- ClientParserOutputDataUpdater
◆ getPrefetchingTermLookup()
Wikibase\Client\WikibaseClient::getPrefetchingTermLookup |
( |
| ) |
|
|
private |
- Returns
- PrefetchingTermLookup
◆ getPropertyDataTypeLookup()
Wikibase\Client\WikibaseClient::getPropertyDataTypeLookup |
( |
| ) |
|
- Returns
- PropertyDataTypeLookup
◆ getPropertyLabelResolver()
Wikibase\Client\WikibaseClient::getPropertyLabelResolver |
( |
| ) |
|
◆ getPropertyOrderProvider()
Wikibase\Client\WikibaseClient::getPropertyOrderProvider |
( |
| ) |
|
- Returns
- PropertyOrderProvider
◆ getPropertyParserFunctionRunner()
Wikibase\Client\WikibaseClient::getPropertyParserFunctionRunner |
( |
| ) |
|
◆ getPropertySource()
Wikibase\Client\WikibaseClient::getPropertySource |
( |
| ) |
|
|
private |
◆ getPropertyTermIndex()
Wikibase\Client\WikibaseClient::getPropertyTermIndex |
( |
| ) |
|
|
private |
- Deprecated:
- Must switch to using non legacy term storage Currently used by:
- getpropertyLabelResolver - Which already has a compatibility layer in place
- Returns
- TermSqlIndex
◆ getRecentChangeFactory()
Wikibase\Client\WikibaseClient::getRecentChangeFactory |
( |
| ) |
|
- Returns
- RecentChangeFactory
◆ getReferenceFormatterFactory()
Wikibase\Client\WikibaseClient::getReferenceFormatterFactory |
( |
| ) |
|
◆ getRepoItemUriParser()
Wikibase\Client\WikibaseClient::getRepoItemUriParser |
( |
| ) |
|
|
private |
◆ getRestrictedEntityLookup()
Wikibase\Client\WikibaseClient::getRestrictedEntityLookup |
( |
| ) |
|
- Returns
- RestrictedEntityLookup
◆ getSettings()
Wikibase\Client\WikibaseClient::getSettings |
( |
| ) |
|
◆ getSidebarLinkBadgeDisplay()
Wikibase\Client\WikibaseClient::getSidebarLinkBadgeDisplay |
( |
| ) |
|
- Returns
- SidebarLinkBadgeDisplay
◆ getSite()
Wikibase\Client\WikibaseClient::getSite |
( |
| ) |
|
Returns the this client wiki's site object.
This is taken from the siteGlobalID setting, which defaults to the wiki's database name.
If the configured site ID is not found in the sites table, a new Site object is constructed from the configured ID.
- Exceptions
-
- Returns
- Site
◆ getSiteGroup()
Wikibase\Client\WikibaseClient::getSiteGroup |
( |
| ) |
|
Get site group ID.
- Returns
- string
◆ getSnakFormatterFactory()
Wikibase\Client\WikibaseClient::getSnakFormatterFactory |
( |
| ) |
|
|
private |
Returns a OutputFormatSnakFormatterFactory the provides SnakFormatters for different output formats.
- Returns
- OutputFormatSnakFormatterFactory
◆ getStatementGroupRendererFactory()
Wikibase\Client\WikibaseClient::getStatementGroupRendererFactory |
( |
| ) |
|
|
private |
- Returns
- StatementGroupRendererFactory
◆ getStore()
Wikibase\Client\WikibaseClient::getStore |
( |
| ) |
|
Returns an instance of the default store.
- Returns
- ClientStore
◆ getStringNormalizer()
Wikibase\Client\WikibaseClient::getStringNormalizer |
( |
| ) |
|
◆ getTermBuffer()
Wikibase\Client\WikibaseClient::getTermBuffer |
( |
| ) |
|
- Returns
- TermBuffer|AliasTermBuffer
◆ getTermLookup()
Wikibase\Client\WikibaseClient::getTermLookup |
( |
| ) |
|
◆ getTermsLanguages()
Wikibase\Client\WikibaseClient::getTermsLanguages |
( |
| ) |
|
Get a ContentLanguages object holding the languages available for labels, descriptions and aliases.
- Returns
- ContentLanguages
◆ getUserLanguage()
Wikibase\Client\WikibaseClient::getUserLanguage |
( |
| ) |
|
|
private |
- Exceptions
-
MWException | when called to early |
- Returns
- Language
◆ getValueFormatterFactory()
Wikibase\Client\WikibaseClient::getValueFormatterFactory |
( |
| ) |
|
|
private |
Returns a OutputFormatValueFormatterFactory the provides ValueFormatters for different output formats.
- Returns
- OutputFormatValueFormatterFactory
◆ getWANObjectCache()
Wikibase\Client\WikibaseClient::getWANObjectCache |
( |
| ) |
|
|
private |
◆ getWikibaseContentLanguages()
Wikibase\Client\WikibaseClient::getWikibaseContentLanguages |
( |
| ) |
|
◆ getWikibaseServices()
Wikibase\Client\WikibaseClient::getWikibaseServices |
( |
| ) |
|
◆ newEntitySourceWikibaseServices()
Wikibase\Client\WikibaseClient::newEntitySourceWikibaseServices |
( |
| ) |
|
|
private |
◆ newInstance()
static Wikibase\Client\WikibaseClient::newInstance |
( |
| ) |
|
|
staticprivate |
Returns a new instance constructed from global settings.
IMPORTANT: Use only when it is not feasible to inject an instance properly.
- Exceptions
-
- Returns
- self
◆ newRepoLinker()
Wikibase\Client\WikibaseClient::newRepoLinker |
( |
| ) |
|
◆ newSiteGroup()
Wikibase\Client\WikibaseClient::newSiteGroup |
( |
| ) |
|
|
private |
Gets the site group ID from setting, which if not set then does lookup in site store.
- Returns
- string
◆ newTermSearchInteractor()
Wikibase\Client\WikibaseClient::newTermSearchInteractor |
( |
|
$displayLanguageCode | ) |
|
- Parameters
-
string | $displayLanguageCode | |
XXX: This is not used by client itself, but is used by ArticlePlaceholder!
- Returns
- TermSearchInteractor
◆ newWikibaseSnakFormatterBuilders()
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 WikibaseClient::getSnakFormatterFactory() instead!
- Parameters
-
WikibaseValueFormatterBuilders | $valueFormatterBuilders | |
- Returns
- WikibaseSnakFormatterBuilders
◆ newWikibaseValueFormatterBuilders()
Wikibase\Client\WikibaseClient::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 WikibaseClient::getSnakFormatterFactory() instead!
- Parameters
-
- Returns
- WikibaseValueFormatterBuilders
◆ overrideStore()
Wikibase\Client\WikibaseClient::overrideStore |
( |
ClientStore |
$store = null | ) |
|
Overrides the default store to be used in the client app context.
This is intended for use by test cases.
- Parameters
-
- Exceptions
-
LogicException | If MW_PHPUNIT_TEST is not defined, to avoid this method being abused in production code. |
◆ overrideTermLookup()
Wikibase\Client\WikibaseClient::overrideTermLookup |
( |
TermLookup |
$lookup = null | ) |
|
Overrides the TermLookup to be used.
This is intended for use by test cases.
- Parameters
-
- Exceptions
-
LogicException | If MW_PHPUNIT_TEST is not defined, to avoid this method being abused in production code. |
◆ useKartographerGlobeCoordinateFormatter()
Wikibase\Client\WikibaseClient::useKartographerGlobeCoordinateFormatter |
( |
| ) |
|
|
private |
◆ $dataTypeDefinitions
Wikibase\Client\WikibaseClient::$dataTypeDefinitions |
|
private |
◆ $dataTypeFactory
Wikibase\Client\WikibaseClient::$dataTypeFactory = null |
|
private |
◆ $defaultInstance
Wikibase\Client\WikibaseClient::$defaultInstance = null |
|
staticprivate |
◆ $defaultSnakFormatterBuilders
Wikibase\Client\WikibaseClient::$defaultSnakFormatterBuilders = null |
|
staticprivate |
◆ $descriptionLookup
Wikibase\Client\WikibaseClient::$descriptionLookup = null |
|
private |
◆ $entityDeserializer
Wikibase\Client\WikibaseClient::$entityDeserializer = null |
|
private |
◆ $entityIdComposer
Wikibase\Client\WikibaseClient::$entityIdComposer = null |
|
private |
◆ $entityIdLookup
Wikibase\Client\WikibaseClient::$entityIdLookup = null |
|
private |
◆ $entityIdParser
Wikibase\Client\WikibaseClient::$entityIdParser = null |
|
private |
◆ $entitySourceDefinitions
Wikibase\Client\WikibaseClient::$entitySourceDefinitions |
|
private |
◆ $entityTypeDefinitions
Wikibase\Client\WikibaseClient::$entityTypeDefinitions |
|
private |
◆ $namespaceChecker
Wikibase\Client\WikibaseClient::$namespaceChecker = null |
|
private |
◆ $parserOutputDataUpdater
Wikibase\Client\WikibaseClient::$parserOutputDataUpdater = null |
|
private |
◆ $prefetchingTermLookup
Wikibase\Client\WikibaseClient::$prefetchingTermLookup = null |
|
private |
◆ $propertyDataTypeLookup
Wikibase\Client\WikibaseClient::$propertyDataTypeLookup = null |
|
private |
◆ $propertyLabelResolver
Wikibase\Client\WikibaseClient::$propertyLabelResolver = null |
|
private |
◆ $propertyOrderProvider
Wikibase\Client\WikibaseClient::$propertyOrderProvider = null |
|
private |
◆ $referenceFormatterFactory
Wikibase\Client\WikibaseClient::$referenceFormatterFactory = null |
|
private |
◆ $restrictedEntityLookup
Wikibase\Client\WikibaseClient::$restrictedEntityLookup = null |
|
private |
◆ $settings
Wikibase\Client\WikibaseClient::$settings |
|
private |
◆ $sidebarLinkBadgeDisplay
Wikibase\Client\WikibaseClient::$sidebarLinkBadgeDisplay = null |
|
private |
◆ $site
Wikibase\Client\WikibaseClient::$site = null |
|
private |
◆ $siteGroup
Wikibase\Client\WikibaseClient::$siteGroup = null |
|
private |
◆ $siteLookup
Wikibase\Client\WikibaseClient::$siteLookup |
|
private |
◆ $snakFormatterFactory
Wikibase\Client\WikibaseClient::$snakFormatterFactory = null |
|
private |
◆ $store
Wikibase\Client\WikibaseClient::$store = null |
|
private |
◆ $termBuffer
Wikibase\Client\WikibaseClient::$termBuffer = null |
|
private |
◆ $termLookup
Wikibase\Client\WikibaseClient::$termLookup = null |
|
private |
◆ $valueFormatterBuilders
Wikibase\Client\WikibaseClient::$valueFormatterBuilders = null |
|
private |
◆ $valueFormatterFactory
Wikibase\Client\WikibaseClient::$valueFormatterFactory = null |
|
private |
◆ $wikibaseContentLanguages
Wikibase\Client\WikibaseClient::$wikibaseContentLanguages = null |
|
private |
◆ $wikibaseServices
Wikibase\Client\WikibaseClient::$wikibaseServices |
|
private |
The documentation for this class was generated from the following file: