|
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 29 of file IRCColourfulRCFeedFormatter.php.
|
static |
Remove newlines, carriage returns and decode html entities.
| string | $text |
Definition at line 125 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 37 of file IRCColourfulRCFeedFormatter.php.
References MediaWiki\RCFeed\IRCColourfulRCFeedFormatter\cleanupForIRC(), MediaWiki\RecentChanges\RecentChange\getAttributes(), MediaWiki\MediaWikiServices\getInstance(), MediaWiki\RecentChanges\RecentChange\getTitle(), MediaWiki\MainConfigNames\LocalInterwikis, NS_SPECIAL, MediaWiki\MainConfigNames\UseNPPatrol, and MediaWiki\MainConfigNames\UseRCPatrol.