MediaWiki REL1_39
ChangesFeed Class Reference

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

Public Member Functions

 __construct ( $format)
 
 getFeedObject ( $title, $description, $url)
 Get a 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 33 of file ChangesFeed.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 39 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 76 of file ChangesFeed.php.

References $title, FeedUtils\formatDiff(), RC_EDIT, RC_EXTERNAL, and wfMessage().

Referenced by ApiFeedRecentChanges\execute().

◆ getFeedObject()

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

Get a ChannelFeed subclass object to use.

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

Definition at line 51 of file ChangesFeed.php.


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