MediaWiki REL1_33
FormattedRCFeed.php
Go to the documentation of this file.
1<?php
26abstract class FormattedRCFeed extends RCFeed {
27 private $params;
28
35 public function __construct( array $params = [] ) {
36 $this->params = $params;
37 }
38
46 abstract public function send( array $feed, $line );
47
53 public function notify( RecentChange $rc, $actionComment = null ) {
56 $formatter = is_object( $params['formatter'] ) ? $params['formatter'] : new $params['formatter'];
57
58 $line = $formatter->getLine( $params, $rc, $actionComment );
59 if ( !$line ) {
60 // @codeCoverageIgnoreStart
61 // T109544 - If a feed formatter returns null, this will otherwise cause an
62 // error in at least RedisPubSubFeedEngine. Not sure best to handle this.
63 return;
64 // @codeCoverageIgnoreEnd
65 }
66 return $this->send( $params, $line );
67 }
68}
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
$line
Definition cdb.php:59
Base class for RC feed engines that send messages in a freely configurable format to a uri-addressed ...
notify(RecentChange $rc, $actionComment=null)
__construct(array $params=[])
send(array $feed, $line)
Send some text to the specified feed.
Utility class for creating new RC entries.
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))