MediaWiki REL1_40
ChangesFeed Class Reference

Feed to Special:RecentChanges and Special:RecentChangesLinked. More...

Public Member Functions

 __construct ( $format)
 
 getFeedObject ( $title, $description, $url)
 Get a MediaWiki\Feed\ChannelFeed subclass object to use.
 

Static Public Member Functions

static buildItems ( $rows)
 Generate the feed items given a row from the database.
 

Detailed Description

Feed to Special:RecentChanges and Special:RecentChangesLinked.

Definition at line 37 of file ChangesFeed.php.

Constructor & Destructor Documentation

◆ __construct()

ChangesFeed::__construct ( $format)
Parameters
string$formatFeed's format (either 'rss' or 'atom')

Definition at line 43 of file ChangesFeed.php.

Member Function Documentation

◆ buildItems()

static ChangesFeed::buildItems ( $rows)
static

Generate the feed items given a row from the database.

Parameters
IResultWrapper$rowsIDatabase resource with recentchanges rows
Returns
array

Definition at line 80 of file ChangesFeed.php.

References $title, RC_EDIT, RC_EXTERNAL, and wfMessage().

Referenced by ApiFeedRecentChanges\execute().

◆ getFeedObject()

ChangesFeed::getFeedObject ( $title,
$description,
$url )

Get a MediaWiki\Feed\ChannelFeed subclass object to use.

Parameters
string$titleFeed's title
string$descriptionFeed's description
string$urlUrl of origin page
Returns
ChannelFeed|bool MediaWiki\Feed\ChannelFeed subclass or false on failure

Definition at line 55 of file ChangesFeed.php.


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