1
0
Deriva 0
derivato da blallo/rss-bridge
rss-bridge/formats/PlaintextFormat.php
logmanoriginal 62eec43980 [core] Apply common indentation
All files are now using tabs for indentation
2016-09-10 20:41:11 +02:00

20 righe
368 B
PHP

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