MediaWiki
REL1_24
|
Generates a colourful notification intended for humans on IRC. More...
Public Member Functions | |
getLine (array $feed, RecentChange $rc, $actionComment) | |
Static Public Member Functions | |
static | cleanupForIRC ($text) |
Remove newlines, carriage returns and decode html entites. |
Generates a colourful notification intended for humans on IRC.
Definition at line 28 of file IRCColourfulRCFeedFormatter.php.
static IRCColourfulRCFeedFormatter::cleanupForIRC | ( | $ | text | ) | [static] |
Remove newlines, carriage returns and decode html entites.
string | $text |
Definition at line 125 of file IRCColourfulRCFeedFormatter.php.
References array(), and Sanitizer\decodeCharReferences().
Referenced by RecentChangeTest\assertIRCComment(), and getLine().
IRCColourfulRCFeedFormatter::getLine | ( | array $ | feed, |
RecentChange $ | rc, | ||
$ | actionComment | ||
) |
Implements RCFeedFormatter.
Definition at line 32 of file IRCColourfulRCFeedFormatter.php.
References $attribs, $comment, $query, $title, $user, array(), cleanupForIRC(), RecentChange\getAttributes(), RecentChange\getTitle(), global, Title\newFromText(), and wfRunHooks().