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, User $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. More... | |
getCentralUserId (User $user) | |
setEntityChangeUserInfo (EntityChange $change, User $user, $centralUserId) | |
setEntityChangeRevisionInfo (EntityChange $change, RevisionRecord $revision, int $centralUserId) | |
Private Attributes | |
$changeFactory | |
$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 |
User | $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, |
User | $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 | |
User | $user | User that made change |
int | $centralUserId | Central user ID, or 0 if unknown or not applicable (see docs/change-propagation.md) |
|
private |
|
private |