MediaWiki master
MediaWiki\RecentChanges\CategoryMembershipChange Class Reference

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.
 

Detailed Description

Helper class for category membership changes.

Since
1.27
Author
Kai Nissen
Addshore

Definition at line 40 of file CategoryMembershipChange.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\RecentChanges\CategoryMembershipChange::__construct ( Title $pageTitle,
BacklinkCache $backlinkCache,
RevisionRecord $revision,
bool $forImport )
Parameters
Title$pageTitleTitle instance of the categorized page
BacklinkCache$backlinkCache
RevisionRecord$revisionLatest revision of the categorized page.
bool$forImportWhether this was caused by an import

Definition at line 84 of file CategoryMembershipChange.php.

References MediaWiki\Revision\RevisionRecord\getTimestamp(), and wfTimestampNow().

Member Function Documentation

◆ checkTemplateLinks()

MediaWiki\RecentChanges\CategoryMembershipChange::checkTemplateLinks ( )

Determines the number of template links for recursive link updates.

Definition at line 117 of file CategoryMembershipChange.php.

◆ overrideNewForCategorizationCallback()

MediaWiki\RecentChanges\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.

Parameters
callable$callback
See also
RecentChange::newForCategorization for callback signiture

Definition at line 107 of file CategoryMembershipChange.php.

◆ triggerCategoryAddedNotification()

MediaWiki\RecentChanges\CategoryMembershipChange::triggerCategoryAddedNotification ( PageIdentity $categoryPage)

Create a recentchanges entry for category additions.

Definition at line 124 of file CategoryMembershipChange.php.

◆ triggerCategoryRemovedNotification()

MediaWiki\RecentChanges\CategoryMembershipChange::triggerCategoryRemovedNotification ( PageIdentity $categoryPage)

Create a recentchanges entry for category removals.

Definition at line 131 of file CategoryMembershipChange.php.


The documentation for this class was generated from the following file: