rss-bridge/formats/PlaintextFormat.php
Benoit.S « Benpro » fd4af15ce6 Respect PHP Coding Standards.
PSR-1 and PSR-2.

PSR-0 need more modifications.
2014-02-06 11:34:19 +01:00

26 lines
452 B
PHP

<?php
/**
* Plaintext
* Returns $this->items as raw php data.
*
* @name Plaintext
*/
class PlaintextFormat extends FormatAbstract
{
public function stringify()
{
$datas = $this->getDatas();
return print_r($datas, true);
}
public function display()
{
$this
->setContentType('text/plain;charset=' . $this->getCharset())
->callContentType();
return parent::display();
}
}