MediaWiki
REL1_24
|
This printer is used to wrap an instance of the Feed class. More...
Public Member Functions | |
__construct (ApiMain $main) | |
canPrintErrors () | |
ChannelFeed doesn't give us a method to print errors in a friendly manner, so just punt errors to the default printer. | |
execute () | |
This class expects the result data to be in a custom format set by self::setResult() $result['_feed'] - an instance of one of the $wgFeedClasses classes $result['_feeditems'] - an array of FeedItem instances. | |
getMimeType () | |
Feed does its own headers. | |
getNeedsRawData () | |
Optimization - no need to sanitize data that will not be needed. | |
Static Public Member Functions | |
static | setResult ($result, $feed, $feedItems) |
Call this method to initialize output data. |
This printer is used to wrap an instance of the Feed class.
Definition at line 31 of file ApiFormatFeedWrapper.php.
ApiFormatFeedWrapper::__construct | ( | ApiMain $ | main | ) |
Definition at line 33 of file ApiFormatFeedWrapper.php.
ChannelFeed doesn't give us a method to print errors in a friendly manner, so just punt errors to the default printer.
Reimplemented from ApiFormatBase.
Definition at line 76 of file ApiFormatFeedWrapper.php.
This class expects the result data to be in a custom format set by self::setResult() $result['_feed'] - an instance of one of the $wgFeedClasses classes $result['_feeditems'] - an array of FeedItem instances.
Reimplemented from ApiBase.
Definition at line 85 of file ApiFormatFeedWrapper.php.
References as, ApiBase\dieDebug(), and ApiBase\getResultData().
Feed does its own headers.
Reimplemented from ApiFormatBase.
Definition at line 58 of file ApiFormatFeedWrapper.php.
Optimization - no need to sanitize data that will not be needed.
Reimplemented from ApiFormatBase.
Definition at line 67 of file ApiFormatFeedWrapper.php.
static ApiFormatFeedWrapper::setResult | ( | $ | result, |
$ | feed, | ||
$ | feedItems | ||
) | [static] |
Call this method to initialize output data.
See execute()
ApiResult | $result | |
object | $feed | An instance of one of the $wgFeedClasses classes |
array | $feedItems | Array of FeedItem objects |
Definition at line 43 of file ApiFormatFeedWrapper.php.
References $result, and ApiResult\NO_SIZE_CHECK.
Referenced by ApiFeedContributions\execute(), ApiFeedRecentChanges\execute(), and ApiFeedWatchlist\execute().