MediaWiki
1.23.2
|
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. More... | |
Protected Member Functions | |
formatArray (array $packet) | |
Take the packet and return the formatted string. More... | |
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.
Implements RCFeedFormatter.
Definition at line 40 of file MachineReadableRCFeedFormatter.php.
References $params, $type, $value, array(), as, formatArray(), RecentChange\getAttributes(), RecentChange\getTitle(), global, RC_EDIT, RC_LOG, RC_NEW, TS_UNIX, wfRestoreWarnings(), wfSuppressWarnings(), wfTimestamp(), and wfWikiID().