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