MediaWiki REL1_39
IRCColourfulRCFeedFormatter Class Reference

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

Inheritance diagram for IRCColourfulRCFeedFormatter:
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 38 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 149 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 46 of file IRCColourfulRCFeedFormatter.php.

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


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