MediaWiki REL1_41
UDPRCFeedEngine Class Reference

Send recent change notifications to a destination address over UDP. More...

Inherits FormattedRCFeed.

Collaboration diagram for UDPRCFeedEngine:

Public Member Functions

 send (array $feed, $line)
 
- Public Member Functions inherited from FormattedRCFeed
 __construct (array $params)
 
 notify (RecentChange $rc, $actionComment=null)
 

Additional Inherited Members

- Static Public Member Functions inherited from RCFeed
static factory (array $params)
 

Detailed Description

Send recent change notifications to a destination address over UDP.

Parameters:

  • formatter: (Required) Which RCFeedFormatter class to use.
  • uri: (Required) Where to send the messages.
Example:
$wgRCFeeds['rc-to-udp'] = [
'class' => 'UDPRCFeedEngine',
'formatter' => 'JSONRCFeedFormatter',
'uri' => 'udp://localhost:1336',
];
$wgRCFeeds
Config variable stub for the RCFeeds setting, for use by phpdoc and IDEs.
See also
$wgRCFeeds
Since
1.22

Definition at line 40 of file UDPRCFeedEngine.php.

Member Function Documentation

◆ send()

UDPRCFeedEngine::send ( array $feed,
$line )
See also
FormattedRCFeed::send
Parameters
array$feed
string$line
Returns
bool

Reimplemented from FormattedRCFeed.

Definition at line 48 of file UDPRCFeedEngine.php.


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