MediaWiki REL1_40
MachineReadableRCFeedFormatter Class Reference

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

Inherits RCFeedFormatter.

Inherited by JSONRCFeedFormatter, and XMLRCFeedFormatter.

Collaboration diagram for MachineReadableRCFeedFormatter:

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 31 of file MachineReadableRCFeedFormatter.php.

Member Function Documentation

◆ formatArray()

MachineReadableRCFeedFormatter::formatArray ( array $packet)
abstractprotected

Take the packet and return the formatted string.

Parameters
array$packet
Returns
string

Reimplemented in JSONRCFeedFormatter, and XMLRCFeedFormatter.

Referenced by getLine().

◆ getLine()

MachineReadableRCFeedFormatter::getLine ( array $feed,
RecentChange $rc,
$actionComment )

Generates a notification that can be easily interpreted by a machine.

See also
RCFeedFormatter::getLine
Parameters
array$feed
RecentChange$rc
string | null$actionComment
Returns
string|null

Implements RCFeedFormatter.

Definition at line 48 of file MachineReadableRCFeedFormatter.php.

References $type, formatArray(), RecentChange\getAttribute(), RecentChange\getTitle(), RecentChange\parseParams(), RC_EDIT, RC_LOG, RC_NEW, and wfTimestamp().


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