rss-bridge/formats/PlaintextFormat.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
342 B
PHP
Raw Normal View History

2013-08-11 13:30:41 +02:00
<?php
class PlaintextFormat extends FormatAbstract
{
const MIME_TYPE = 'text/plain';
2024-08-23 17:34:06 +02:00
public function render(): string
{
$feed = $this->getFeed();
foreach ($this->getItems() as $item) {
$feed['items'][] = $item->toArray();
}
$text = print_r($feed, true);
return $text;
}
}