1
0
Fork 0
rozštěpen z blallo/rss-bridge
rss-bridge/formats/PlaintextFormat.php
2013-08-11 13:30:41 +02:00

22 řádky
Žádný EOL
440 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();
}
}