mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-29 14:48:52 +03:00
22 lines
440 B
PHP
22 lines
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();
|
||
|
}
|
||
|
}
|