MediaWiki master
|
Abstract class so there can be multiple formatters outputting the same data. More...
Inherits MediaWiki\RCFeed\RCFeedFormatter.
Inherited by MediaWiki\RCFeed\JSONRCFeedFormatter, and MediaWiki\RCFeed\XMLRCFeedFormatter.
Public Member Functions | |
getLine (array $feed, RecentChange $rc, $actionComment) | |
Generates a notification that can be easily interpreted by a machine. | |
Protected Member Functions | |
formatArray (array $packet) | |
Take the packet and return the formatted string. | |
Abstract class so there can be multiple formatters outputting the same data.
Definition at line 35 of file MachineReadableRCFeedFormatter.php.
|
abstractprotected |
Take the packet and return the formatted string.
array | $packet |
Reimplemented in MediaWiki\RCFeed\JSONRCFeedFormatter, and MediaWiki\RCFeed\XMLRCFeedFormatter.
Referenced by MediaWiki\RCFeed\MachineReadableRCFeedFormatter\getLine().
MediaWiki\RCFeed\MachineReadableRCFeedFormatter::getLine | ( | array | $feed, |
RecentChange | $rc, | ||
$actionComment ) |
Generates a notification that can be easily interpreted by a machine.
array | $feed | |
RecentChange | $rc | |
string | null | $actionComment |
Implements MediaWiki\RCFeed\RCFeedFormatter.
Definition at line 57 of file MachineReadableRCFeedFormatter.php.
References $params, MediaWiki\MainConfigNames\CanonicalServer, MediaWiki\RCFeed\MachineReadableRCFeedFormatter\formatArray(), RecentChange\getAttribute(), MediaWiki\MediaWikiServices\getInstance(), RecentChange\getNotifyUrl(), RecentChange\getTitle(), RecentChange\parseParams(), RC_EDIT, RC_LOG, RC_NEW, MediaWiki\MainConfigNames\ScriptPath, MediaWiki\MainConfigNames\ServerName, MediaWiki\MainConfigNames\UseNPPatrol, MediaWiki\MainConfigNames\UseRCPatrol, and wfTimestamp().