|
Wikibase
MediaWiki Wikibase extension
|
Handlers for client Echo notifications. More...
Inheritance diagram for Wikibase\Client\Hooks\EchoNotificationsHandlers:
Collaboration diagram for Wikibase\Client\Hooks\EchoNotificationsHandlers:Public Member Functions | |
| __construct (RepoLinker $repoLinker, NamespaceChecker $namespaceChecker, RedirectLookup $redirectLookup, UserIdentityLookup $userIdentityLookup, UserOptionsManager $userOptionsManager, string $siteId, bool $sendEchoNotification, string $repoSiteName) | |
| onLocalUserCreated ( $user, $autocreated) | |
| Handler for LocalUserCreated hook. | |
| onWikibaseHandleChange (Change $change, array $rootJobParams=[]) | |
| doWikibaseHandleChange (Change $change) | |
Public Member Functions inherited from Wikibase\Client\Hooks\WikibaseHandleChangeHook | |
| onWikibaseHandleChange (EntityChange $change, array $rootJobParams=[]) | |
Called by () ChangeHandler::handleChanges() to allow alternative processing of changes. | |
Static Public Member Functions | |
| static | factory (RedirectLookup $redirectLookup, UserIdentityLookup $userIdentityLookup, UserOptionsManager $userOptionsManager, NamespaceChecker $namespaceChecker, RepoLinker $repoLinker, SettingsArray $settings) |
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 | |
| $redirectLookup | |
| UserIdentityLookup | $userIdentityLookup |
| $userOptionsManager | |
| $siteId | |
| $sendEchoNotification | |
| $repoSiteName | |
Handlers for client Echo notifications.
| Wikibase\Client\Hooks\EchoNotificationsHandlers::__construct | ( | RepoLinker | $repoLinker, |
| NamespaceChecker | $namespaceChecker, | ||
| RedirectLookup | $redirectLookup, | ||
| UserIdentityLookup | $userIdentityLookup, | ||
| 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::doWikibaseHandleChange | ( | Change | $change | ) |
|
static |
|
private |
Determines whether the change was a real sitelink addition and returns either title, or false.
| DiffOp | $siteLinkDiffOp |
| Wikibase\Client\Hooks\EchoNotificationsHandlers::onLocalUserCreated | ( | $user, | |
| $autocreated ) |
Handler for LocalUserCreated hook.
| User | $user | User object that was created. |
| bool | $autocreated | True when account was auto-created |
| Wikibase\Client\Hooks\EchoNotificationsHandlers::onWikibaseHandleChange | ( | Change | $change, |
| array | $rootJobParams = [] ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| const Wikibase\Client\Hooks\EchoNotificationsHandlers::NOTIFICATION_TYPE = 'page-connection' |
Type of notification.