MediaWiki REL1_37
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.
 

Private Attributes

 $format
 

Detailed Description

Feed to Special:RecentChanges and Special:RecentChangesLinked.

Definition at line 32 of file ChangesFeed.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 38 of file ChangesFeed.php.

References $format.

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 73 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 50 of file ChangesFeed.php.

References $format, $wgFeedClasses, $wgLanguageCode, and $wgSitename.

Member Data Documentation

◆ $format

ChangesFeed::$format
private

Definition at line 33 of file ChangesFeed.php.

Referenced by __construct(), and getFeedObject().


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