MediaWiki REL1_31
IRCColourfulRCFeedFormatter Class Reference

Generates a colourful notification intended for humans on IRC. 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 entites.
 

Detailed Description

Generates a colourful notification intended for humans on IRC.

Since
1.22

Definition at line 28 of file IRCColourfulRCFeedFormatter.php.

Member Function Documentation

◆ cleanupForIRC()

static IRCColourfulRCFeedFormatter::cleanupForIRC ( $text)
static

Remove newlines, carriage returns and decode html entites.

Parameters
string$text
Returns
string

Definition at line 136 of file IRCColourfulRCFeedFormatter.php.

Referenced by LogFormatterTest\assertIRCComment(), and 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 36 of file IRCColourfulRCFeedFormatter.php.

References $attribs, $query, $wgCanonicalServer, $wgLocalInterwikis, $wgScript, $wgUseNPPatrol, $wgUseRCPatrol, cleanupForIRC(), NS_SPECIAL, RC_CATEGORIZE, RC_LOG, and RC_NEW.


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