rss-bridge/formats/PlaintextFormat.php

17 lines
342 B
PHP
Raw Normal View History

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