MediaWiki master
|
Format a notification as a human-readable string using IRC colour codes. More...
Inherits MediaWiki\RCFeed\RCFeedFormatter.
Public Member Functions | |
getLine (array $feed, RecentChange $rc, $actionComment) | |
Static Public Member Functions | |
static | cleanupForIRC ( $text) |
Remove newlines, carriage returns and decode html entities. | |
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.Definition at line 43 of file IRCColourfulRCFeedFormatter.php.
|
static |
Remove newlines, carriage returns and decode html entities.
string | $text |
Definition at line 138 of file IRCColourfulRCFeedFormatter.php.
Referenced by MediaWiki\RCFeed\IRCColourfulRCFeedFormatter\getLine().
MediaWiki\RCFeed\IRCColourfulRCFeedFormatter::getLine | ( | array | $feed, |
RecentChange | $rc, | ||
$actionComment ) |
array | $feed | |
RecentChange | $rc | |
string | null | $actionComment |
Implements MediaWiki\RCFeed\RCFeedFormatter.
Definition at line 51 of file IRCColourfulRCFeedFormatter.php.
References MediaWiki\RCFeed\IRCColourfulRCFeedFormatter\cleanupForIRC(), RecentChange\getAttributes(), MediaWiki\MediaWikiServices\getInstance(), RecentChange\getNotifyUrl(), RecentChange\getTitle(), MediaWiki\MainConfigNames\LocalInterwikis, NS_SPECIAL, RC_CATEGORIZE, RC_LOG, RC_NEW, MediaWiki\MainConfigNames\UseNPPatrol, and MediaWiki\MainConfigNames\UseRCPatrol.