MediaWiki
master
|
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 31 of file MachineReadableRCFeedFormatter.php.
|
abstractprotected |
Take the packet and return the formatted string.
array | $packet |
Reimplemented in XMLRCFeedFormatter, and JSONRCFeedFormatter.
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 48 of file MachineReadableRCFeedFormatter.php.
References $type, formatArray(), RecentChange\getAttribute(), RecentChange\getNotifyUrl(), RecentChange\getTitle(), RecentChange\parseFromRCType(), RecentChange\parseParams(), RC_EDIT, RC_LOG, RC_NEW, and wfTimestamp().