MediaWiki master
IRCColourfulRCFeedFormatter Class Reference

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

Inherits RCFeedFormatter.

Collaboration diagram for 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 40 of file IRCColourfulRCFeedFormatter.php.

Member Function Documentation

◆ cleanupForIRC()

static IRCColourfulRCFeedFormatter::cleanupForIRC ( $text)
static

Remove newlines, carriage returns and decode html entities.

Parameters
string$text
Returns
string

Definition at line 135 of file IRCColourfulRCFeedFormatter.php.

Referenced by getLine().

◆ getLine()

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

Implements RCFeedFormatter.

Definition at line 48 of file IRCColourfulRCFeedFormatter.php.

References cleanupForIRC(), RecentChange\getAttributes(), RecentChange\getNotifyUrl(), RecentChange\getTitle(), NS_SPECIAL, RC_CATEGORIZE, RC_LOG, and RC_NEW.


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