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

Handlers for hooks (e.g. More...

Public Member Functions

 __construct ( $sendEchoNotification, $echoIcon)
 
 doBeforeCreateEchoEvent (array &$notifications, array &$notificationCategories, array &$icons)
 

Static Public Member Functions

static newFromGlobalState ()
 
static onBeforeCreateEchoEvent (array &$notifications, array &$notificationCategories, array &$icons)
 Handler for BeforeCreateEchoEvent hook.
 

Private Attributes

 $sendEchoNotification
 
 $echoIcon
 

Detailed Description

Handlers for hooks (e.g.

BeforeCreateEchoEvent) called when Echo extension is initialized, so on every page load.

Author
Matěj Suchánek
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Hooks\EchoSetupHookHandlers::__construct (   $sendEchoNotification,
  $echoIcon 
)
Parameters
bool$sendEchoNotification
array | false$echoIcon

Member Function Documentation

◆ doBeforeCreateEchoEvent()

Wikibase\Client\Hooks\EchoSetupHookHandlers::doBeforeCreateEchoEvent ( array &  $notifications,
array &  $notificationCategories,
array &  $icons 
)
See also
https://www.mediawiki.org/wiki/Notifications/Developer_guide
Parameters
array[]&$notifications
array[]&$notificationCategories
array[]&$icons

◆ newFromGlobalState()

static Wikibase\Client\Hooks\EchoSetupHookHandlers::newFromGlobalState ( )
static
Returns
self

◆ onBeforeCreateEchoEvent()

static Wikibase\Client\Hooks\EchoSetupHookHandlers::onBeforeCreateEchoEvent ( array &  $notifications,
array &  $notificationCategories,
array &  $icons 
)
static

Handler for BeforeCreateEchoEvent hook.

See also
https://www.mediawiki.org/wiki/Extension:Echo/BeforeCreateEchoEvent
doBeforeCreateEchoEvent
Parameters
array[]&$notifications
array[]&$notificationCategories
array[]&$icons

Member Data Documentation

◆ $echoIcon

Wikibase\Client\Hooks\EchoSetupHookHandlers::$echoIcon
private

◆ $sendEchoNotification

Wikibase\Client\Hooks\EchoSetupHookHandlers::$sendEchoNotification
private

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