mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-27 12:01:09 +03:00
eb3392db82
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
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(){
|
|
$datas = $this->getDatas();
|
|
return print_r($datas, true);
|
|
}
|
|
|
|
public function display(){
|
|
$this
|
|
->setContentType('text/plain;charset=' . $this->getCharset())
|
|
->callContentType();
|
|
|
|
return parent::display();
|
|
}
|
|
} |