WikibaseLexeme
MediaWiki WikibaseLexeme extension
Loading...
Searching...
No Matches
Wikibase\Lexeme\WikibaseLexemeHooks Class Reference

MediaWiki hook handlers for the Wikibase Lexeme extension. More...

Static Public Member Functions

static onWikibaseRepoEntityNamespaces (array &$entityNamespacesSetting)
 Hook to register the lexeme and other entity namespaces for EntityNamespaceLookup.
 
static onCanonicalNamespaces (array &$namespaces)
 Hook to register the default namespace names.
 
static onWikibaseClientEntityTypes (array &$entityTypeDefinitions)
 Adds the definition of the lexeme entity type to the definitions array Wikibase uses.
 
static onWikibaseRepoEntityTypes (array &$entityTypeDefinitions)
 Adds the definition of the lexeme entity type to the definitions array Wikibase uses.
 
static onWikibaseDataTypes (array &$dataTypeDefinitions)
 Adds the definition of the data types related to lexeme to the definitions array Wikibase uses.
 
static onWikibaseClientDataTypes (array &$dataTypeDefinitions)
 Adds the definition of the data types related to lexeme to the definitions array Wikibase uses.
 
static onWikibaseContentLanguages (array &$contentLanguages)
 
static onParserOutputUpdaterConstruction (CompositeStatementDataUpdater $statementUpdater, array &$entityUpdaters)
 
static onInfoAction (IContextSource $context, array &$pageInfo)
 Adds the Wikis using the entity in action=info.
 
static onScribuntoExternalLibraries ( $engine, array &$extraLibraries)
 
static getLexemeViewLanguages ()
 

Static Private Member Functions

static registerNamespace (array $namespaces, $namespaceId, $namespaceName)
 

Detailed Description

MediaWiki hook handlers for the Wikibase Lexeme extension.

Author
Amir Sarabadani ladsg.nosp@m.roup.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Member Function Documentation

◆ getLexemeViewLanguages()

static Wikibase\Lexeme\WikibaseLexemeHooks::getLexemeViewLanguages ( )
static

◆ onCanonicalNamespaces()

static Wikibase\Lexeme\WikibaseLexemeHooks::onCanonicalNamespaces ( array & $namespaces)
static

Hook to register the default namespace names.

See also
https://www.mediawiki.org/wiki/Manual:Hooks/CanonicalNamespaces

◆ onInfoAction()

static Wikibase\Lexeme\WikibaseLexemeHooks::onInfoAction ( IContextSource $context,
array & $pageInfo )
static

Adds the Wikis using the entity in action=info.

Parameters
IContextSource$context
array[]&$pageInfo

◆ onParserOutputUpdaterConstruction()

static Wikibase\Lexeme\WikibaseLexemeHooks::onParserOutputUpdaterConstruction ( CompositeStatementDataUpdater $statementUpdater,
array & $entityUpdaters )
static

◆ onScribuntoExternalLibraries()

static Wikibase\Lexeme\WikibaseLexemeHooks::onScribuntoExternalLibraries ( $engine,
array & $extraLibraries )
static

◆ onWikibaseClientDataTypes()

static Wikibase\Lexeme\WikibaseLexemeHooks::onWikibaseClientDataTypes ( array & $dataTypeDefinitions)
static

Adds the definition of the data types related to lexeme to the definitions array Wikibase uses.

See also
WikibaseLexeme.datatypes.client.php
Parameters
array[]$dataTypeDefinitions

◆ onWikibaseClientEntityTypes()

static Wikibase\Lexeme\WikibaseLexemeHooks::onWikibaseClientEntityTypes ( array & $entityTypeDefinitions)
static

Adds the definition of the lexeme entity type to the definitions array Wikibase uses.

See also
WikibaseLexeme.entitytypes.php
Note
This is bootstrap code, it is executed for EVERY request. Avoid instantiating objects or loading classes here!
Parameters
array[]$entityTypeDefinitions

◆ onWikibaseContentLanguages()

static Wikibase\Lexeme\WikibaseLexemeHooks::onWikibaseContentLanguages ( array & $contentLanguages)
static

◆ onWikibaseDataTypes()

static Wikibase\Lexeme\WikibaseLexemeHooks::onWikibaseDataTypes ( array & $dataTypeDefinitions)
static

Adds the definition of the data types related to lexeme to the definitions array Wikibase uses.

See also
WikibaseLexeme.datatypes.php
Note
This is bootstrap code, it is executed for EVERY request. Avoid instantiating objects or loading classes here!
Parameters
array[]$dataTypeDefinitions

◆ onWikibaseRepoEntityNamespaces()

static Wikibase\Lexeme\WikibaseLexemeHooks::onWikibaseRepoEntityNamespaces ( array & $entityNamespacesSetting)
static

Hook to register the lexeme and other entity namespaces for EntityNamespaceLookup.

Parameters
int[]$entityNamespacesSetting

◆ onWikibaseRepoEntityTypes()

static Wikibase\Lexeme\WikibaseLexemeHooks::onWikibaseRepoEntityTypes ( array & $entityTypeDefinitions)
static

Adds the definition of the lexeme entity type to the definitions array Wikibase uses.

See also
WikibaseLexeme.entitytypes.php
WikibaseLexeme.entitytypes.repo.php
Parameters
array[]$entityTypeDefinitions

◆ registerNamespace()

static Wikibase\Lexeme\WikibaseLexemeHooks::registerNamespace ( array $namespaces,
$namespaceId,
$namespaceName )
staticprivate
Parameters
string[]$namespaces
int$namespaceId
string$namespaceName
Returns
string[]
Exceptions

RuntimeException If namespace ID is already registered with another name


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