MediaWiki master
MediaWiki\RecentChanges\RecentChangeRCFeedNotifier Class Reference

Public Member Functions

 __construct (HookContainer $hookContainer, ServiceOptions $options)
 
 getNotifyUrl (RecentChange $recentChange)
 Get the extra URL that is given as part of the notification to RCFeed consumers.
 
 notifyRCFeeds (RecentChange $recentChange, ?array $feeds=null)
 Notify all the feeds about the change.
 

Public Attributes

const CONSTRUCTOR_OPTIONS
 

Detailed Description

Since
1.45

Definition at line 18 of file RecentChangeRCFeedNotifier.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\RecentChanges\RecentChangeRCFeedNotifier::__construct ( HookContainer $hookContainer,
ServiceOptions $options )

Member Function Documentation

◆ getNotifyUrl()

MediaWiki\RecentChanges\RecentChangeRCFeedNotifier::getNotifyUrl ( RecentChange $recentChange)

Get the extra URL that is given as part of the notification to RCFeed consumers.

This is mainly to facilitate patrolling or other content review.

Parameters
RecentChange$recentChange
Returns
string|null URL

Definition at line 93 of file RecentChangeRCFeedNotifier.php.

References $url.

◆ notifyRCFeeds()

MediaWiki\RecentChanges\RecentChangeRCFeedNotifier::notifyRCFeeds ( RecentChange $recentChange,
?array $feeds = null )

Notify all the feeds about the change.

Parameters
RecentChange$recentChange
array | null$feedsOptional feeds to send to, defaults to $wgRCFeeds

Definition at line 47 of file RecentChangeRCFeedNotifier.php.

References MediaWiki\RCFeed\RCFeed\factory(), MediaWiki\RecentChanges\RecentChange\getAttribute(), MediaWiki\RecentChanges\RecentChange\getExtra(), MediaWiki\RecentChanges\RecentChange\getPerformerIdentity(), and MediaWiki\MainConfigNames\RCFeeds.

Member Data Documentation

◆ CONSTRUCTOR_OPTIONS

const MediaWiki\RecentChanges\RecentChangeRCFeedNotifier::CONSTRUCTOR_OPTIONS
Initial value:
= [
]
const UseRCPatrol
Name constant for the UseRCPatrol setting, for use with Config::get()
const CanonicalServer
Name constant for the CanonicalServer setting, for use with Config::get()
const RCFeeds
Name constant for the RCFeeds setting, for use with Config::get()
const UseNPPatrol
Name constant for the UseNPPatrol setting, for use with Config::get()
const Script
Name constant for the Script setting, for use with Config::get()

Definition at line 20 of file RecentChangeRCFeedNotifier.php.


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