Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\WikibaseClient Class Reference

Top level factory for the WikibaseClient extension. More...

Static Public Member Functions

static getDefaultValueFormatterBuilders (?ContainerInterface $services=null)
 Returns a low level factory object for creating formatters for well known data types.
 
static getKartographerEmbeddingHandler (?ContainerInterface $services=null)
 
static getDefaultSnakFormatterBuilders (?ContainerInterface $services=null)
 
static getDataTypeDefinitions (?ContainerInterface $services=null)
 
static getEntitySourceDefinitions (?ContainerInterface $services=null)
 
static getEntityTypeDefinitions (?ContainerInterface $services=null)
 
static getDataTypeFactory (?ContainerInterface $services=null)
 
static getEntityIdParser (?ContainerInterface $services=null)
 
static getEntityIdComposer (?ContainerInterface $services=null)
 
static getWikibaseServices (?ContainerInterface $services=null)
 
static getDataAccessSettings (?ContainerInterface $services=null)
 
static getEntityLookup (?ContainerInterface $services=null)
 
static getEntityRevisionLookup (?ContainerInterface $services=null)
 
static getTermBuffer (?ContainerInterface $services=null)
 
static getAliasTermBuffer (?ContainerInterface $services=null)
 
static getTermLookup (?ContainerInterface $services=null)
 
static getPrefetchingTermLookup (?ContainerInterface $services=null)
 
static getPropertyDataTypeLookup (?ContainerInterface $services=null)
 
static getPropertyInfoLookup (?ContainerInterface $services=null)
 
static getStringNormalizer (?ContainerInterface $services=null)
 
static getRepoLinker (?ContainerInterface $services=null)
 
static getLanguageFallbackChainFactory (?ContainerInterface $services=null)
 
static getStore (?ContainerInterface $services=null)
 
static getUserLanguage (?ContainerInterface $services=null)
 
static getSettings (?ContainerInterface $services=null)
 
static getLogger (?ContainerInterface $services=null)
 
static getSite (?ContainerInterface $services=null)
 Returns the this client wiki's site object.
 
static getLangLinkSiteGroup (?ContainerInterface $services=null)
 Returns the site group ID for the group to be used for language links.
 
static getLangLinkSiteGroups (?ContainerInterface $services=null)
 Returns the site group IDs for the group to be used for language links.
 
static getSiteGroup (?ContainerInterface $services=null)
 Get site group ID.
 
static getSnakFormatterFactory (?ContainerInterface $services=null)
 Returns a OutputFormatSnakFormatterFactory the provides SnakFormatters for different output formats.
 
static getValueFormatterFactory (?ContainerInterface $services=null)
 Returns a OutputFormatValueFormatterFactory the provides ValueFormatters for different output formats.
 
static getRepoItemUriParser (?ContainerInterface $services=null)
 
static getMobileSite (?ContainerInterface $services=null)
 
static getNamespaceChecker (?ContainerInterface $services=null)
 
static getLangLinkHandlerFactory (?ContainerInterface $services=null)
 
static getParserOutputDataUpdater (?ContainerInterface $services=null)
 
static getSidebarLinkBadgeDisplay (?ContainerInterface $services=null)
 
static getLanguageLinkBadgeDisplay (?ContainerInterface $services=null)
 
static getBaseDataModelDeserializerFactory (?ContainerInterface $services=null)
 
static getCompactBaseDataModelSerializerFactory (?ContainerInterface $services=null)
 Returns a SerializerFactory creating serializers that generate the most compact serialization.
 
static getCompactEntitySerializer (?ContainerInterface $services=null)
 Returns an entity serializer that generates the most compact serialization.
 
static getDataValueDeserializer (?ContainerInterface $services=null)
 
static getOtherProjectsSidebarGeneratorFactory (?ContainerInterface $services=null)
 
static getEntityChangeFactory (?ContainerInterface $services=null)
 
static getEntityChangeLookup (?ContainerInterface $services=null)
 
static getEntityDiffer (?ContainerInterface $services=null)
 
static getStatementGroupRendererFactory (?ContainerInterface $services=null)
 
static getDataAccessSnakFormatterFactory (?ContainerInterface $services=null)
 
static getPropertyParserFunctionRunner (?ContainerInterface $services=null)
 
static getOtherProjectsSitesProvider (?ContainerInterface $services=null)
 
static getAffectedPagesFinder (?ContainerInterface $services=null)
 
static getChangeHandler (?ContainerInterface $services=null)
 
static getRecentChangeFactory (?ContainerInterface $services=null)
 
static getExternalUserNames (?ContainerInterface $services=null)
 Returns an ExternalUserNames that can be used to link to the item and property source, if an interwiki prefix for that source (and its site) is known.
 
static getItemAndPropertySource (?ContainerInterface $services=null)
 
static getWikibaseContentLanguages (?ContainerInterface $services=null)
 
static getTermsLanguages (?ContainerInterface $services=null)
 Get a ContentLanguages object holding the languages available for labels, descriptions and aliases.
 
static getRestrictedEntityLookupFactory (?ContainerInterface $services=null)
 
static getPropertyOrderProvider (?ContainerInterface $services=null)
 
static getEntityNamespaceLookup (?ContainerInterface $services=null)
 
static getTermFallbackCache (?ContainerInterface $services=null)
 
static getTermFallbackCacheFactory (?ContainerInterface $services=null)
 
static getEntityIdLookup (?ContainerInterface $services=null)
 
static getDescriptionLookup (?ContainerInterface $services=null)
 
static getPropertyLabelResolver (?ContainerInterface $services=null)
 
static getReferenceFormatterFactory (?ContainerInterface $services=null)
 
static getItemSource (?ContainerInterface $services=null)
 
static getPropertySource (?ContainerInterface $services=null)
 
static getTermInLangIdsResolverFactory (?ContainerInterface $services=null)
 
static getMessageInLanguageProvider (?ContainerInterface $services=null)
 
static getClientDomainDbFactory (?ContainerInterface $services=null)
 
static getRepoDomainDbFactory (?ContainerInterface $services=null)
 
static getTermsDomainDbFactory (?ContainerInterface $services=null)
 
static getEntitySourceAndTypeDefinitions (?ContainerInterface $services=null)
 
static getUsageAccumulatorFactory (?ContainerInterface $services=null)
 
static getHookRunner (?ContainerInterface $services=null)
 
static getRedirectResolvingLatestRevisionLookup (?ContainerInterface $services=null)
 
static getFallbackLabelDescriptionLookupFactory (?ContainerInterface $services=null)
 

Private Member Functions

 __construct ()
 

Detailed Description

Top level factory for the WikibaseClient extension.

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\WikibaseClient::__construct ( )
private

Member Function Documentation

◆ getAffectedPagesFinder()

static Wikibase\Client\WikibaseClient::getAffectedPagesFinder ( ?ContainerInterface $services = null)
static

◆ getAliasTermBuffer()

static Wikibase\Client\WikibaseClient::getAliasTermBuffer ( ?ContainerInterface $services = null)
static

◆ getBaseDataModelDeserializerFactory()

static Wikibase\Client\WikibaseClient::getBaseDataModelDeserializerFactory ( ?ContainerInterface $services = null)
static

◆ getChangeHandler()

static Wikibase\Client\WikibaseClient::getChangeHandler ( ?ContainerInterface $services = null)
static

◆ getClientDomainDbFactory()

static Wikibase\Client\WikibaseClient::getClientDomainDbFactory ( ?ContainerInterface $services = null)
static

◆ getCompactBaseDataModelSerializerFactory()

static Wikibase\Client\WikibaseClient::getCompactBaseDataModelSerializerFactory ( ?ContainerInterface $services = null)
static

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.

◆ getCompactEntitySerializer()

static Wikibase\Client\WikibaseClient::getCompactEntitySerializer ( ?ContainerInterface $services = null)
static

Returns an entity serializer that generates the most compact serialization.

◆ getDataAccessSettings()

static Wikibase\Client\WikibaseClient::getDataAccessSettings ( ?ContainerInterface $services = null)
static

◆ getDataAccessSnakFormatterFactory()

static Wikibase\Client\WikibaseClient::getDataAccessSnakFormatterFactory ( ?ContainerInterface $services = null)
static

◆ getDataTypeDefinitions()

static Wikibase\Client\WikibaseClient::getDataTypeDefinitions ( ?ContainerInterface $services = null)
static

◆ getDataTypeFactory()

static Wikibase\Client\WikibaseClient::getDataTypeFactory ( ?ContainerInterface $services = null)
static

◆ getDataValueDeserializer()

static Wikibase\Client\WikibaseClient::getDataValueDeserializer ( ?ContainerInterface $services = null)
static

◆ getDefaultSnakFormatterBuilders()

static Wikibase\Client\WikibaseClient::getDefaultSnakFormatterBuilders ( ?ContainerInterface $services = null)
static
Warning
This is for use with bootstrap code in WikibaseClient.datatypes.php only! Program logic should use WikibaseClient::getSnakFormatterFactory() instead!

◆ getDefaultValueFormatterBuilders()

static Wikibase\Client\WikibaseClient::getDefaultValueFormatterBuilders ( ?ContainerInterface $services = null)
static

Returns a low level factory object for creating formatters for well known data types.

Warning
This is for use with bootstrap code in WikibaseClient.datatypes.php only! Program logic should use WikibaseClient::getSnakFormatterFactory() instead!
Returns
WikibaseValueFormatterBuilders

◆ getDescriptionLookup()

static Wikibase\Client\WikibaseClient::getDescriptionLookup ( ?ContainerInterface $services = null)
static

◆ getEntityChangeFactory()

static Wikibase\Client\WikibaseClient::getEntityChangeFactory ( ?ContainerInterface $services = null)
static

◆ getEntityChangeLookup()

static Wikibase\Client\WikibaseClient::getEntityChangeLookup ( ?ContainerInterface $services = null)
static

◆ getEntityDiffer()

static Wikibase\Client\WikibaseClient::getEntityDiffer ( ?ContainerInterface $services = null)
static

◆ getEntityIdComposer()

static Wikibase\Client\WikibaseClient::getEntityIdComposer ( ?ContainerInterface $services = null)
static

◆ getEntityIdLookup()

static Wikibase\Client\WikibaseClient::getEntityIdLookup ( ?ContainerInterface $services = null)
static

◆ getEntityIdParser()

static Wikibase\Client\WikibaseClient::getEntityIdParser ( ?ContainerInterface $services = null)
static

◆ getEntityLookup()

static Wikibase\Client\WikibaseClient::getEntityLookup ( ?ContainerInterface $services = null)
static

◆ getEntityNamespaceLookup()

static Wikibase\Client\WikibaseClient::getEntityNamespaceLookup ( ?ContainerInterface $services = null)
static

◆ getEntityRevisionLookup()

static Wikibase\Client\WikibaseClient::getEntityRevisionLookup ( ?ContainerInterface $services = null)
static

◆ getEntitySourceAndTypeDefinitions()

static Wikibase\Client\WikibaseClient::getEntitySourceAndTypeDefinitions ( ?ContainerInterface $services = null)
static

◆ getEntitySourceDefinitions()

static Wikibase\Client\WikibaseClient::getEntitySourceDefinitions ( ?ContainerInterface $services = null)
static

◆ getEntityTypeDefinitions()

static Wikibase\Client\WikibaseClient::getEntityTypeDefinitions ( ?ContainerInterface $services = null)
static

◆ getExternalUserNames()

static Wikibase\Client\WikibaseClient::getExternalUserNames ( ?ContainerInterface $services = null)
static

Returns an ExternalUserNames that can be used to link to the item and property source, if an interwiki prefix for that source (and its site) is known.

◆ getFallbackLabelDescriptionLookupFactory()

static Wikibase\Client\WikibaseClient::getFallbackLabelDescriptionLookupFactory ( ?ContainerInterface $services = null)
static

◆ getHookRunner()

static Wikibase\Client\WikibaseClient::getHookRunner ( ?ContainerInterface $services = null)
static

◆ getItemAndPropertySource()

static Wikibase\Client\WikibaseClient::getItemAndPropertySource ( ?ContainerInterface $services = null)
static

◆ getItemSource()

static Wikibase\Client\WikibaseClient::getItemSource ( ?ContainerInterface $services = null)
static

◆ getKartographerEmbeddingHandler()

static Wikibase\Client\WikibaseClient::getKartographerEmbeddingHandler ( ?ContainerInterface $services = null)
static

◆ getLangLinkHandlerFactory()

static Wikibase\Client\WikibaseClient::getLangLinkHandlerFactory ( ?ContainerInterface $services = null)
static

◆ getLangLinkSiteGroup()

static Wikibase\Client\WikibaseClient::getLangLinkSiteGroup ( ?ContainerInterface $services = null)
static

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.

◆ getLangLinkSiteGroups()

static Wikibase\Client\WikibaseClient::getLangLinkSiteGroups ( ?ContainerInterface $services = null)
static

Returns the site group IDs 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. It can also be configured to be more than one group.

◆ getLanguageFallbackChainFactory()

static Wikibase\Client\WikibaseClient::getLanguageFallbackChainFactory ( ?ContainerInterface $services = null)
static

◆ getLanguageLinkBadgeDisplay()

static Wikibase\Client\WikibaseClient::getLanguageLinkBadgeDisplay ( ?ContainerInterface $services = null)
static

◆ getLogger()

static Wikibase\Client\WikibaseClient::getLogger ( ?ContainerInterface $services = null)
static

◆ getMessageInLanguageProvider()

static Wikibase\Client\WikibaseClient::getMessageInLanguageProvider ( ?ContainerInterface $services = null)
static

◆ getMobileSite()

static Wikibase\Client\WikibaseClient::getMobileSite ( ?ContainerInterface $services = null)
static

◆ getNamespaceChecker()

static Wikibase\Client\WikibaseClient::getNamespaceChecker ( ?ContainerInterface $services = null)
static

◆ getOtherProjectsSidebarGeneratorFactory()

static Wikibase\Client\WikibaseClient::getOtherProjectsSidebarGeneratorFactory ( ?ContainerInterface $services = null)
static

◆ getOtherProjectsSitesProvider()

static Wikibase\Client\WikibaseClient::getOtherProjectsSitesProvider ( ?ContainerInterface $services = null)
static

◆ getParserOutputDataUpdater()

static Wikibase\Client\WikibaseClient::getParserOutputDataUpdater ( ?ContainerInterface $services = null)
static

◆ getPrefetchingTermLookup()

static Wikibase\Client\WikibaseClient::getPrefetchingTermLookup ( ?ContainerInterface $services = null)
static

◆ getPropertyDataTypeLookup()

static Wikibase\Client\WikibaseClient::getPropertyDataTypeLookup ( ?ContainerInterface $services = null)
static

◆ getPropertyInfoLookup()

static Wikibase\Client\WikibaseClient::getPropertyInfoLookup ( ?ContainerInterface $services = null)
static

◆ getPropertyLabelResolver()

static Wikibase\Client\WikibaseClient::getPropertyLabelResolver ( ?ContainerInterface $services = null)
static

◆ getPropertyOrderProvider()

static Wikibase\Client\WikibaseClient::getPropertyOrderProvider ( ?ContainerInterface $services = null)
static

◆ getPropertyParserFunctionRunner()

static Wikibase\Client\WikibaseClient::getPropertyParserFunctionRunner ( ?ContainerInterface $services = null)
static

◆ getPropertySource()

static Wikibase\Client\WikibaseClient::getPropertySource ( ?ContainerInterface $services = null)
static

◆ getRecentChangeFactory()

static Wikibase\Client\WikibaseClient::getRecentChangeFactory ( ?ContainerInterface $services = null)
static

◆ getRedirectResolvingLatestRevisionLookup()

static Wikibase\Client\WikibaseClient::getRedirectResolvingLatestRevisionLookup ( ?ContainerInterface $services = null)
static

◆ getReferenceFormatterFactory()

static Wikibase\Client\WikibaseClient::getReferenceFormatterFactory ( ?ContainerInterface $services = null)
static

◆ getRepoDomainDbFactory()

static Wikibase\Client\WikibaseClient::getRepoDomainDbFactory ( ?ContainerInterface $services = null)
static

◆ getRepoItemUriParser()

static Wikibase\Client\WikibaseClient::getRepoItemUriParser ( ?ContainerInterface $services = null)
static

◆ getRepoLinker()

static Wikibase\Client\WikibaseClient::getRepoLinker ( ?ContainerInterface $services = null)
static

◆ getRestrictedEntityLookupFactory()

static Wikibase\Client\WikibaseClient::getRestrictedEntityLookupFactory ( ?ContainerInterface $services = null)
static

◆ getSettings()

static Wikibase\Client\WikibaseClient::getSettings ( ?ContainerInterface $services = null)
static

◆ getSidebarLinkBadgeDisplay()

static Wikibase\Client\WikibaseClient::getSidebarLinkBadgeDisplay ( ?ContainerInterface $services = null)
static

◆ getSite()

static Wikibase\Client\WikibaseClient::getSite ( ?ContainerInterface $services = null)
static

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.

◆ getSiteGroup()

static Wikibase\Client\WikibaseClient::getSiteGroup ( ?ContainerInterface $services = null)
static

Get site group ID.

◆ getSnakFormatterFactory()

static Wikibase\Client\WikibaseClient::getSnakFormatterFactory ( ?ContainerInterface $services = null)
static

Returns a OutputFormatSnakFormatterFactory the provides SnakFormatters for different output formats.

◆ getStatementGroupRendererFactory()

static Wikibase\Client\WikibaseClient::getStatementGroupRendererFactory ( ?ContainerInterface $services = null)
static

◆ getStore()

static Wikibase\Client\WikibaseClient::getStore ( ?ContainerInterface $services = null)
static

◆ getStringNormalizer()

static Wikibase\Client\WikibaseClient::getStringNormalizer ( ?ContainerInterface $services = null)
static

◆ getTermBuffer()

static Wikibase\Client\WikibaseClient::getTermBuffer ( ?ContainerInterface $services = null)
static

◆ getTermFallbackCache()

static Wikibase\Client\WikibaseClient::getTermFallbackCache ( ?ContainerInterface $services = null)
static

◆ getTermFallbackCacheFactory()

static Wikibase\Client\WikibaseClient::getTermFallbackCacheFactory ( ?ContainerInterface $services = null)
static

◆ getTermInLangIdsResolverFactory()

static Wikibase\Client\WikibaseClient::getTermInLangIdsResolverFactory ( ?ContainerInterface $services = null)
static

◆ getTermLookup()

static Wikibase\Client\WikibaseClient::getTermLookup ( ?ContainerInterface $services = null)
static

◆ getTermsDomainDbFactory()

static Wikibase\Client\WikibaseClient::getTermsDomainDbFactory ( ?ContainerInterface $services = null)
static

◆ getTermsLanguages()

static Wikibase\Client\WikibaseClient::getTermsLanguages ( ?ContainerInterface $services = null)
static

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

◆ getUsageAccumulatorFactory()

static Wikibase\Client\WikibaseClient::getUsageAccumulatorFactory ( ?ContainerInterface $services = null)
static

◆ getUserLanguage()

static Wikibase\Client\WikibaseClient::getUserLanguage ( ?ContainerInterface $services = null)
static
Deprecated
Avoid injecting the user language into a service. If the service depends on a language, make it part of the parameters when the service is used (possibly indirectly, e.g. via an \IContextSource).

◆ getValueFormatterFactory()

static Wikibase\Client\WikibaseClient::getValueFormatterFactory ( ?ContainerInterface $services = null)
static

Returns a OutputFormatValueFormatterFactory the provides ValueFormatters for different output formats.

◆ getWikibaseContentLanguages()

static Wikibase\Client\WikibaseClient::getWikibaseContentLanguages ( ?ContainerInterface $services = null)
static

◆ getWikibaseServices()

static Wikibase\Client\WikibaseClient::getWikibaseServices ( ?ContainerInterface $services = null)
static

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