MediaWiki master
|
Helper class for category membership changes. More...
Public Member Functions | |
__construct (Title $pageTitle, BacklinkCache $backlinkCache, RevisionRecord $revision, bool $forImport) | |
checkTemplateLinks () | |
Determines the number of template links for recursive link updates. | |
overrideNewForCategorizationCallback (callable $callback) | |
Overrides the default new for categorization callback This is intended for use while testing and will fail if MW_PHPUNIT_TEST is not defined. | |
triggerCategoryAddedNotification (PageIdentity $categoryPage) | |
Create a recentchanges entry for category additions. | |
triggerCategoryRemovedNotification (PageIdentity $categoryPage) | |
Create a recentchanges entry for category removals. | |
Helper class for category membership changes.
Definition at line 36 of file CategoryMembershipChange.php.
CategoryMembershipChange::__construct | ( | Title | $pageTitle, |
BacklinkCache | $backlinkCache, | ||
RevisionRecord | $revision, | ||
bool | $forImport ) |
Title | $pageTitle | Title instance of the categorized page |
BacklinkCache | $backlinkCache | |
RevisionRecord | $revision | Latest revision of the categorized page. |
bool | $forImport | Whether this was caused by an import |
Definition at line 80 of file CategoryMembershipChange.php.
References MediaWiki\Revision\RevisionRecord\getTimestamp(), and wfTimestampNow().
CategoryMembershipChange::checkTemplateLinks | ( | ) |
Determines the number of template links for recursive link updates.
Definition at line 113 of file CategoryMembershipChange.php.
CategoryMembershipChange::overrideNewForCategorizationCallback | ( | callable | $callback | ) |
Overrides the default new for categorization callback This is intended for use while testing and will fail if MW_PHPUNIT_TEST is not defined.
callable | $callback |
Definition at line 103 of file CategoryMembershipChange.php.
CategoryMembershipChange::triggerCategoryAddedNotification | ( | PageIdentity | $categoryPage | ) |
Create a recentchanges entry for category additions.
PageIdentity | $categoryPage |
Definition at line 122 of file CategoryMembershipChange.php.
CategoryMembershipChange::triggerCategoryRemovedNotification | ( | PageIdentity | $categoryPage | ) |
Create a recentchanges entry for category removals.
PageIdentity | $categoryPage |
Definition at line 131 of file CategoryMembershipChange.php.