forked from blallo/rss-bridge
cf146523be
This makes the intend of the variable more clear and is now coherent with all Bridges
20 lines
No EOL
420 B
PHP
20 lines
No EOL
420 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();
|
|
}
|
|
} |