MediaWiki master
MediaWiki\RCFeed\IRCColourfulRCFeedFormatter Class Reference

Format a notification as a human-readable string using IRC colour codes. More...

Inherits MediaWiki\RCFeed\RCFeedFormatter.

Collaboration diagram for MediaWiki\RCFeed\IRCColourfulRCFeedFormatter:

Public Member Functions

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

Static Public Member Functions

static cleanupForIRC ( $text)
 Remove newlines, carriage returns and decode html entities.
 

Detailed Description

Format a notification as a human-readable string using IRC colour codes.

Parameters:

  • add_interwiki_prefix: Whether the titles should be prefixed with the first entry in the $wgLocalInterwikis array (or the value of $wgLocalInterwiki, if set). Default: false.
See also
$wgRCFeeds
Since
1.22

Definition at line 43 of file IRCColourfulRCFeedFormatter.php.

Member Function Documentation

◆ cleanupForIRC()

static MediaWiki\RCFeed\IRCColourfulRCFeedFormatter::cleanupForIRC ( $text)
static

Remove newlines, carriage returns and decode html entities.

Parameters
string$text
Returns
string

Definition at line 138 of file IRCColourfulRCFeedFormatter.php.

Referenced by MediaWiki\RCFeed\IRCColourfulRCFeedFormatter\getLine().

◆ getLine()

MediaWiki\RCFeed\IRCColourfulRCFeedFormatter::getLine ( array $feed,
RecentChange $rc,
$actionComment )

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