|
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 22 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 44 of file MachineReadableRCFeedFormatter.php.
References $source, MediaWiki\MainConfigNames\CanonicalServer, MediaWiki\RCFeed\MachineReadableRCFeedFormatter\formatArray(), MediaWiki\RecentChanges\RecentChange\getAttribute(), MediaWiki\MediaWikiServices\getInstance(), MediaWiki\RecentChanges\RecentChange\getTitle(), MediaWiki\RecentChanges\RecentChange\parseParams(), MediaWiki\MainConfigNames\ScriptPath, MediaWiki\MainConfigNames\ServerName, MediaWiki\MainConfigNames\UseNPPatrol, MediaWiki\MainConfigNames\UseRCPatrol, and wfTimestamp().