Static Public Member Functions | |
static | checkPurge ($timekey, $key) |
static | checkFeedOutput ($type) |
static | formatDiff ($row) |
Format a diff for the newsfeed. | |
static | formatDiffRow ($title, $oldid, $newid, $timestamp, $comment, $actiontext='') |
static | applyDiffStyle ($text) |
Hacky application of diff styles for the feeds. |
Definition at line 4 of file FeedUtils.php.
static FeedUtils::applyDiffStyle | ( | $ | text | ) | [static] |
Hacky application of diff styles for the feeds.
Might be 'cleaner' to use DOM or XSLT or something, but *gack* it's a pain in the ass.
$text | String: |
Definition at line 136 of file FeedUtils.php.
References $text.
Referenced by formatDiffRow().
static FeedUtils::checkFeedOutput | ( | $ | type | ) | [static] |
Definition at line 15 of file FeedUtils.php.
References $type, $wgFeed, $wgFeedClasses, $wgOut, and wfHttpError().
Referenced by ChangesFeed::execute(), and PageHistory::feed().
static FeedUtils::checkPurge | ( | $ | timekey, | |
$ | key | |||
) | [static] |
Definition at line 6 of file FeedUtils.php.
References $key, $messageMemc, $purge, $wgRequest, and $wgUser.
Referenced by ChangesFeed::execute().
static FeedUtils::formatDiff | ( | $ | row | ) | [static] |
Format a diff for the newsfeed.
Definition at line 35 of file FeedUtils.php.
References $row, $wgUser, LogPage::actionText(), LogPage::DELETED_ACTION, Revision::DELETED_COMMENT, LogPage::extractParams(), formatDiffRow(), Title::makeTitle(), wfMsgHtml(), and wfTimestamp().
Referenced by ChangesFeed::generateFeed().
static FeedUtils::formatDiffRow | ( | $ | title, | |
$ | oldid, | |||
$ | newid, | |||
$ | timestamp, | |||
$ | comment, | |||
$ | actiontext = '' | |||
) | [static] |
Definition at line 56 of file FeedUtils.php.
References $title, $wgContLang, $wgFeedDiffCutoff, $wgUser, applyDiffStyle(), UtfNormal::cleanUp(), Revision::newFromId(), wfMsg(), wfMsgForContent(), wfProfileIn(), and wfProfileOut().
Referenced by PageHistory::feedItem(), and formatDiff().