MediaWiki  master
CategoryMembershipChange Class Reference

Public Member Functions

 __construct (Title $pageTitle, BacklinkCache $backlinkCache, RevisionRecord $revision=null)
 
 checkTemplateLinks ()
 Determines the number of template links for recursive link updates. More...
 
 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. More...
 
 triggerCategoryAddedNotification (Title $categoryTitle)
 Create a recentchanges entry for category additions. More...
 
 triggerCategoryRemovedNotification (Title $categoryTitle)
 Create a recentchanges entry for category removals. More...
 

Detailed Description

Definition at line 33 of file CategoryMembershipChange.php.

Constructor & Destructor Documentation

◆ __construct()

CategoryMembershipChange::__construct ( Title  $pageTitle,
BacklinkCache  $backlinkCache,
RevisionRecord  $revision = null 
)
Parameters
Title$pageTitleTitle instance of the categorized page
BacklinkCache$backlinkCache
RevisionRecord | null$revisionLatest revision of the categorized page.
Exceptions
MWException

Definition at line 75 of file CategoryMembershipChange.php.

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

Member Function Documentation

◆ checkTemplateLinks()

CategoryMembershipChange::checkTemplateLinks ( )

Determines the number of template links for recursive link updates.

Definition at line 108 of file CategoryMembershipChange.php.

◆ overrideNewForCategorizationCallback()

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
Exceptions
MWException

Definition at line 98 of file CategoryMembershipChange.php.

◆ triggerCategoryAddedNotification()

CategoryMembershipChange::triggerCategoryAddedNotification ( Title  $categoryTitle)

Create a recentchanges entry for category additions.

Parameters
Title$categoryTitle

Definition at line 117 of file CategoryMembershipChange.php.

◆ triggerCategoryRemovedNotification()

CategoryMembershipChange::triggerCategoryRemovedNotification ( Title  $categoryTitle)

Create a recentchanges entry for category removals.

Parameters
Title$categoryTitle

Definition at line 126 of file CategoryMembershipChange.php.


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