35 parent::__construct( $main,
'feed' );
44 public static function setResult( $result, $feed, $feedItems ) {
79 parent::initPrinter( $unused );
85 $data = $this->
getResult()->getResultData();
86 if ( isset( $data[
'_feed'] ) && isset( $data[
'_feeditems'] ) ) {
88 $feed = $data[
'_feed'];
102 $data = $this->
getResult()->getResultData();
103 if ( isset( $data[
'_feed'] ) && isset( $data[
'_feeditems'] ) ) {
105 $feed = $data[
'_feed'];
106 $items = $data[
'_feeditems'];
111 foreach ( $items as & $item ) {
112 $feed->outItem( $item );
124class_alias( ApiFormatFeedWrapper::class,
'ApiFormatFeedWrapper' );
This is the main API class, used for both external and internal processing.