MediaWiki  REL1_22
IRCColourfulRCFeedFormatter Class Reference
Inheritance diagram for IRCColourfulRCFeedFormatter:
Collaboration diagram for IRCColourfulRCFeedFormatter:

List of all members.

Public Member Functions

 getLine (array $feed, RecentChange $rc, $actionComment)
 Generates a colourful notification intended for humans on IRC.

Static Public Member Functions

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

Detailed Description

Definition at line 2 of file IRCColourfulRCFeedFormatter.php.


Member Function Documentation

static IRCColourfulRCFeedFormatter::cleanupForIRC ( text) [static]

Remove newlines, carriage returns and decode html entites.

Parameters:
string$text
Returns:
string

Definition at line 92 of file IRCColourfulRCFeedFormatter.php.

References array(), and Sanitizer\decodeCharReferences().

Referenced by RecentChangeTest\assertIRCComment(), and getLine().

IRCColourfulRCFeedFormatter::getLine ( array feed,
RecentChange rc,
actionComment 
)

Generates a colourful notification intended for humans on IRC.

See also:
RCFeedFormatter::getLine

Implements RCFeedFormatter.

Definition at line 7 of file IRCColourfulRCFeedFormatter.php.

References $attribs, $comment, $query, $title, $user, array(), cleanupForIRC(), RecentChange\getAttributes(), RecentChange\getTitle(), global, Title\newFromText(), and wfRunHooks().


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