Wikibase
MediaWiki Wikibase extension
|
Handlers for client Echo notifications. More...
Public Member Functions | |
__construct (RepoLinker $repoLinker, NamespaceChecker $namespaceChecker, $siteId, $sendEchoNotification, $repoSiteName) | |
doLocalUserCreated (User $user, $autocreated) | |
doWikibaseHandleChange (Change $change) | |
Static Public Member Functions | |
static | newFromGlobalState () |
static | onEchoGetBundleRules (EchoEvent $event, &$bundleString) |
Handler for EchoGetBundleRules hook. | |
static | onLocalUserCreated (User $user, $autocreated) |
Handler for LocalUserCreated hook. | |
static | onWikibaseHandleChange (Change $change) |
Handler for WikibaseHandleChange hook. | |
Public Attributes | |
const | NOTIFICATION_TYPE = 'page-connection' |
Type of notification. | |
Private Member Functions | |
getTitleForNotification (DiffOp $siteLinkDiffOp) | |
Determines whether the change was a real sitelink addition and returns either title, or false. | |
canNotifyForTitle (Title $title) | |
Whether it's reasonable to send a notification for the title. | |
Private Attributes | |
$repoLinker | |
$namespaceChecker | |
$siteId | |
$sendEchoNotification | |
$repoSiteName | |
Handlers for client Echo notifications.
Wikibase\Client\Hooks\EchoNotificationsHandlers::__construct | ( | RepoLinker | $repoLinker, |
NamespaceChecker | $namespaceChecker, | ||
$siteId, | |||
$sendEchoNotification, | |||
$repoSiteName | |||
) |
RepoLinker | $repoLinker | |
NamespaceChecker | $namespaceChecker | |
string | $siteId | |
bool | $sendEchoNotification | |
string | $repoSiteName |
|
private |
Whether it's reasonable to send a notification for the title.
Title | $title |
Wikibase\Client\Hooks\EchoNotificationsHandlers::doLocalUserCreated | ( | User | $user, |
$autocreated | |||
) |
User | $user | |
bool | $autocreated |
Wikibase\Client\Hooks\EchoNotificationsHandlers::doWikibaseHandleChange | ( | Change | $change | ) |
Change | $change |
|
private |
Determines whether the change was a real sitelink addition and returns either title, or false.
DiffOp | $siteLinkDiffOp |
|
static |
|
static |
Handler for EchoGetBundleRules hook.
EchoEvent | $event | |
string | &$bundleString |
|
static |
Handler for LocalUserCreated hook.
User | $user | User object that was created. |
bool | $autocreated | True when account was auto-created |
|
static |
Handler for WikibaseHandleChange hook.
Change | $change |
|
private |
|
private |
|
private |
|
private |
|
private |
const Wikibase\Client\Hooks\EchoNotificationsHandlers::NOTIFICATION_TYPE = 'page-connection' |
Type of notification.