Wikibase
MediaWiki Wikibase extension
|
Factory for creating EntityChange objects for repo wiki page actions that clients need to be notified for. More...
Public Member Functions | |
__construct (EntityChangeFactory $changeFactory, ?CentralIdLookup $centralIdLookup) | |
newForPageDeleted (EntityContent $content, UserIdentity $user, string $timestamp) | |
newForPageUndeleted (EntityContent $content, RevisionRecord $revisionRecord) | |
newForPageCreated (EntityContent $content, RevisionRecord $revisionRecord) | |
Private Member Functions | |
getChangeForModification (?EntityDocument $oldEntity, ?EntityDocument $newEntity) | |
Returns a EntityChange based on the old and new content object, taking redirects into consideration. | |
getCentralUserId (UserIdentity $user) | |
setEntityChangeUserInfo (EntityChange $change, UserIdentity $user, $centralUserId) | |
setEntityChangeRevisionInfo (EntityChange $change, RevisionRecord $revision, int $centralUserId) | |
Private Attributes | |
EntityChangeFactory | $changeFactory |
CentralIdLookup | $centralIdLookup |
Factory for creating EntityChange objects for repo wiki page actions that clients need to be notified for.
Wikibase\Repo\Notifications\WikiPageActionEntityChangeFactory::__construct | ( | EntityChangeFactory | $changeFactory, |
?CentralIdLookup | $centralIdLookup ) |
|
private |
UserIdentity | $user | Repository user |
|
private |
Returns a EntityChange based on the old and new content object, taking redirects into consideration.
Wikibase\Repo\Notifications\WikiPageActionEntityChangeFactory::newForPageCreated | ( | EntityContent | $content, |
RevisionRecord | $revisionRecord ) |
Wikibase\Repo\Notifications\WikiPageActionEntityChangeFactory::newForPageDeleted | ( | EntityContent | $content, |
UserIdentity | $user, | ||
string | $timestamp ) |
Wikibase\Repo\Notifications\WikiPageActionEntityChangeFactory::newForPageUndeleted | ( | EntityContent | $content, |
RevisionRecord | $revisionRecord ) |
|
private |
EntityChange | $change | |
RevisionRecord | $revision | Revision to populate EntityChange from |
int | $centralUserId | Central user ID, or 0 if unknown or not applicable (see docs/change-propagation.md) |
|
private |
EntityChange | $change | |
UserIdentity | $user | User that made change |
int | $centralUserId | Central user ID, or 0 if unknown or not applicable (see docs/change-propagation.md) |
|
private |
|
private |