MediaWiki master
MediaWiki\RCFeed\UDPRCFeedEngine Class Reference

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

Inherits MediaWiki\RCFeed\FormattedRCFeed.

Collaboration diagram for MediaWiki\RCFeed\UDPRCFeedEngine:

Public Member Functions

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

Additional Inherited Members

- Static Public Member Functions inherited from MediaWiki\RCFeed\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 44 of file UDPRCFeedEngine.php.

Member Function Documentation

◆ send()

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

Reimplemented from MediaWiki\RCFeed\FormattedRCFeed.

Definition at line 52 of file UDPRCFeedEngine.php.


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