Wikibase
MediaWiki Wikibase extension
|
Top level factory for the WikibaseClient extension. More...
Public Member Functions | |
__construct (SiteLookup $siteLookup) | |
getPropertyDataTypeLookup () | |
getStringNormalizer (ContainerInterface $services=null) | |
getContentLanguage () | |
getLangLinkHandlerFactory () | |
getParserOutputDataUpdater () | |
getSidebarLinkBadgeDisplay () | |
getLanguageLinkBadgeDisplay () | |
getLuaEntityModules () | |
getOtherProjectsSidebarGeneratorFactory () | |
getDataAccessSnakFormatterFactory () | |
getPropertyParserFunctionRunner () | |
getTermsLanguages () | |
Get a ContentLanguages object holding the languages available for labels, descriptions and aliases. More... | |
getRestrictedEntityLookup () | |
getReferenceFormatterFactory () | |
Static Public Member Functions | |
static | getDefaultValueFormatterBuilders () |
static | getDefaultSnakFormatterBuilders () |
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 | getSingleEntitySourceServicesFactory (ContainerInterface $services=null) |
static | getWikibaseServices (ContainerInterface $services=null) |
static | getDataAccessSettings (ContainerInterface $services=null) |
static | getEntityLookup (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 | getRepoLinker (ContainerInterface $services=null) |
static | getLanguageFallbackChainFactory (ContainerInterface $services=null) |
static | getLanguageFallbackLabelDescriptionLookupFactory (ContainerInterface $services=null) |
static | getStore (ContainerInterface $services=null) |
static | getSettings (ContainerInterface $services=null) |
static | getDefaultInstance ( $reset='noreset') |
IMPORTANT: Use only when it is not feasible to inject an instance properly. More... | |
static | getLogger (ContainerInterface $services=null) |
static | getSite (ContainerInterface $services=null) |
Returns the this client wiki's site object. More... | |
static | getLangLinkSiteGroup (ContainerInterface $services=null) |
Returns the site group ID for the group to be used for language links. More... | |
static | getSiteGroup (ContainerInterface $services=null) |
Get site group ID. More... | |
static | getValueFormatterFactory (ContainerInterface $services=null) |
Returns a OutputFormatValueFormatterFactory the provides ValueFormatters for different output formats. More... | |
static | getRepoItemUriParser (ContainerInterface $services=null) |
static | getNamespaceChecker (ContainerInterface $services=null) |
static | getBaseDataModelDeserializerFactory (ContainerInterface $services=null) |
static | getCompactBaseDataModelSerializerFactory (ContainerInterface $services=null) |
Returns a SerializerFactory creating serializers that generate the most compact serialization. More... | |
static | getCompactEntitySerializer (ContainerInterface $services=null) |
Returns an entity serializer that generates the most compact serialization. More... | |
static | getDataValueDeserializer (ContainerInterface $services=null) |
static | getEntityChangeFactory (ContainerInterface $services=null) |
static | getEntityDiffer (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. More... | |
static | getItemAndPropertySource (ContainerInterface $services=null) |
static | getWikibaseContentLanguages (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 | getItemSource (ContainerInterface $services=null) |
static | getPropertySource (ContainerInterface $services=null) |
Private Member Functions | |
newWikibaseValueFormatterBuilders (array $thumbLimits) | |
Returns a low level factory object for creating formatters for well known data types. More... | |
useKartographerGlobeCoordinateFormatter () | |
newWikibaseSnakFormatterBuilders (WikibaseValueFormatterBuilders $valueFormatterBuilders) | |
Returns a low level factory object for creating formatters for well known data types. More... | |
getUserLanguage () | |
getSnakFormatterFactory () | |
Returns a OutputFormatSnakFormatterFactory the provides SnakFormatters for different output formats. More... | |
getStatementGroupRendererFactory () | |
Static Private Member Functions | |
static | newInstance () |
Returns a new instance constructed from global settings. More... | |
Private Attributes | |
$siteLookup | |
$propertyDataTypeLookup = null | |
$snakFormatterFactory = null | |
$parserOutputDataUpdater = null | |
$restrictedEntityLookup = null | |
$sidebarLinkBadgeDisplay = null | |
$valueFormatterBuilders = null | |
$referenceFormatterFactory = null | |
Static Private Attributes | |
static | $defaultInstance = null |
static | $defaultSnakFormatterBuilders = null |
Top level factory for the WikibaseClient extension.
Wikibase\Client\WikibaseClient::__construct | ( | SiteLookup | $siteLookup | ) |
|
static |
|
static |
|
static |
|
static |
|
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.
|
static |
Returns an entity serializer that generates the most compact serialization.
Wikibase\Client\WikibaseClient::getContentLanguage | ( | ) |
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 |
Wikibase\Client\WikibaseClient::getDataAccessSnakFormatterFactory | ( | ) |
|
static |
|
static |
|
static |
|
static |
IMPORTANT: Use only when it is not feasible to inject an instance properly.
string | $reset | Flag: Pass "reset" to reset the default instance |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
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.
|
static |
|
static |
Wikibase\Client\WikibaseClient::getLangLinkHandlerFactory | ( | ) |
|
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.
|
static |
|
static |
Wikibase\Client\WikibaseClient::getLanguageLinkBadgeDisplay | ( | ) |
|
static |
Wikibase\Client\WikibaseClient::getLuaEntityModules | ( | ) |
|
static |
Wikibase\Client\WikibaseClient::getOtherProjectsSidebarGeneratorFactory | ( | ) |
|
static |
Wikibase\Client\WikibaseClient::getParserOutputDataUpdater | ( | ) |
|
static |
|
static |
Wikibase\Client\WikibaseClient::getPropertyDataTypeLookup | ( | ) |
|
static |
|
static |
Wikibase\Client\WikibaseClient::getPropertyParserFunctionRunner | ( | ) |
|
static |
|
static |
Wikibase\Client\WikibaseClient::getReferenceFormatterFactory | ( | ) |
|
static |
|
static |
Wikibase\Client\WikibaseClient::getRestrictedEntityLookup | ( | ) |
|
static |
Wikibase\Client\WikibaseClient::getSidebarLinkBadgeDisplay | ( | ) |
|
static |
Will be removed with T277731
|
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.
|
static |
Get site group ID.
|
private |
Returns a OutputFormatSnakFormatterFactory the provides SnakFormatters for different output formats.
|
private |
|
static |
Wikibase\Client\WikibaseClient::getStringNormalizer | ( | ContainerInterface | $services = null | ) |
|
static |
|
static |
|
static |
|
static |
Wikibase\Client\WikibaseClient::getTermsLanguages | ( | ) |
Get a ContentLanguages object holding the languages available for labels, descriptions and aliases.
|
private |
MWException | when called to early |
|
static |
Returns a OutputFormatValueFormatterFactory the provides ValueFormatters for different output formats.
|
static |
|
static |
|
staticprivate |
Returns a new instance constructed from global settings.
IMPORTANT: Use only when it is not feasible to inject an instance properly.
MWException |
|
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 |
|
private |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |