MediaWiki  REL1_23
MachineReadableRCFeedFormatter Class Reference

Abstract class so there can be multiple formatters outputting the same data. More...

Inheritance diagram for MachineReadableRCFeedFormatter:
Collaboration diagram for MachineReadableRCFeedFormatter:

List of all members.

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.

Detailed Description

Abstract class so there can be multiple formatters outputting the same data.

Since:
1.23

Definition at line 27 of file MachineReadableRCFeedFormatter.php.


Member Function Documentation

MachineReadableRCFeedFormatter::formatArray ( array packet) [abstract, protected]

Take the packet and return the formatted string.

Parameters:
array$packet
Returns:
string

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.

See also:
RCFeedFormatter::getLine

Implements RCFeedFormatter.

Definition at line 40 of file MachineReadableRCFeedFormatter.php.

References $key, $params, $value, array(), as, formatArray(), RecentChange\getAttributes(), RecentChange\getTitle(), global, wfRestoreWarnings(), wfSuppressWarnings(), wfTimestamp(), and wfWikiID().


The documentation for this class was generated from the following file: