MediaWiki
REL1_24
|
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.
MachineReadableRCFeedFormatter::formatArray | ( | array $ | packet | ) | [abstract, protected] |
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 $key, $params, $type, $value, $wgServerName, array(), as, false, formatArray(), RecentChange\getAttribute(), RecentChange\getTitle(), global, RecentChange\parseFromRCType(), wfRestoreWarnings(), wfSuppressWarnings(), wfTimestamp(), and wfWikiID().