MediaWiki REL1_37
|
Abstract class so there can be multiple formatters outputting the same data. More...
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 27 of file MachineReadableRCFeedFormatter.php.
|
abstractprotected |
Take the packet and return the formatted string.
array | $packet |
Reimplemented in JSONRCFeedFormatter, and XMLRCFeedFormatter.
Referenced by getLine().
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 RCFeedFormatter.
Definition at line 44 of file MachineReadableRCFeedFormatter.php.
References $type, $wgCanonicalServer, $wgScriptPath, $wgServerName, $wgUseNPPatrol, $wgUseRCPatrol, formatArray(), RecentChange\getAttribute(), RecentChange\getTitle(), RecentChange\parseParams(), RC_EDIT, RC_LOG, RC_NEW, serialize(), and wfTimestamp().