MediaWiki  master
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. More...
 

Static Public Member Functions

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

Detailed Description

Feed to Special:RecentChanges and Special:RecentChangesLinked.

Definition at line 36 of file ChangesFeed.php.

Constructor & Destructor Documentation

◆ __construct()

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

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

References $title, Title\makeTitle(), 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 54 of file ChangesFeed.php.


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