Wikibase
MediaWiki Wikibase extension
|
Handle Changes' hooks. More...
Public Member Functions | ||||||||||
__construct (HookContainer $hookContainer) | ||||||||||
onWikibaseHandleChange ( $change, array $rootJobParams=[]) | ||||||||||
Hook runner for the 'WikibaseHandleChange' hook. | ||||||||||
onWikibaseHandleChanges (array $changes, array $rootJobParams=[]) | ||||||||||
Hook runner for the 'WikibaseHandleChanges' hook. | ||||||||||
onWikibaseClientSiteLinksForItem (Item $item, array &$siteLinks, UsageAccumulator $usageAccumulator) | ||||||||||
Called by Wikibase::Client::Hooks::SiteLinksForDisplayLookup to allow altering the sitelinks used in language links and the other project's sidebar.Only called in case the page we are on is linked with an item.
| ||||||||||
onWikibaseClientDataTypes (array &$dataTypeDefinitions) | ||||||||||
Called when constructing the top-level WikibaseClient factory May be used to define additional data types See also the Wikibase::Repo::Hooks::WikibaseRepoDataTypesHook.Hook handlers may add additional definitions. See the datatypes documentation for details.
| ||||||||||
onWikibaseClientEntityTypes (array &$entityTypeDefinitions) | ||||||||||
Called when constructing the top-level WikibaseClient factory May be used to define additional entity types.See also the WikibaseRepoEntityTypesHook .Hook handlers may add additional definitions. See entitytypes documentation for details.
| ||||||||||
Private Attributes | |
$hookContainer | |
Handle Changes' hooks.
Wikibase\Client\Hooks\WikibaseClientHookRunner::__construct | ( | HookContainer | $hookContainer | ) |
Wikibase\Client\Hooks\WikibaseClientHookRunner::onWikibaseClientDataTypes | ( | array & | $dataTypeDefinitions | ) |
Called when constructing the top-level WikibaseClient factory May be used to define additional data types See also the Wikibase::Repo::Hooks::WikibaseRepoDataTypesHook.Hook handlers may add additional definitions. See the datatypes documentation for details.
array | &$dataTypeDefinitions | The array of data type definitions, as defined by WikibaseClient.datatypes.php |
Implements Wikibase\Client\Hooks\WikibaseClientDataTypesHook.
Wikibase\Client\Hooks\WikibaseClientHookRunner::onWikibaseClientEntityTypes | ( | array & | $entityTypeDefinitions | ) |
Called when constructing the top-level WikibaseClient
factory May be used to define additional entity types.See also the WikibaseRepoEntityTypesHook
.Hook handlers may add additional definitions. See entitytypes documentation for details.
array | &$entityTypeDefinitions | the array of entity type definitions, as defined by WikibaseLib.entitytypes.php |
Implements Wikibase\Client\Hooks\WikibaseClientEntityTypesHook.
Wikibase\Client\Hooks\WikibaseClientHookRunner::onWikibaseClientSiteLinksForItem | ( | Item | $item, |
array & | $siteLinks, | ||
UsageAccumulator | $usageAccumulator ) |
Called by Wikibase::Client::Hooks::SiteLinksForDisplayLookup to allow altering the sitelinks used in language links and the other project's sidebar.Only called in case the page we are on is linked with an item.
Item | $item | Item the page is linked with. |
SiteLink[] | &$siteLinks | Array containing the site links to display indexed by site global ID. |
UsageAccumulator | $usageAccumulator | A usage accumulator to track the usages of Wikibase entities done by the hook handlers. |
Implements Wikibase\Client\Hooks\WikibaseClientSiteLinksForItemHook.
Wikibase\Client\Hooks\WikibaseClientHookRunner::onWikibaseHandleChange | ( | $change, | |
array | $rootJobParams = [] ) |
Hook runner for the 'WikibaseHandleChange' hook.
EntityChange | $change | |
array | $rootJobParams |
Implements Wikibase\Client\Hooks\WikibaseHandleChangeHook.
Wikibase\Client\Hooks\WikibaseClientHookRunner::onWikibaseHandleChanges | ( | array | $changes, |
array | $rootJobParams = [] ) |
Hook runner for the 'WikibaseHandleChanges' hook.
array | $changes | |
array | $rootJobParams |
Implements Wikibase\Client\Hooks\WikibaseHandleChangesHook.
|
private |