mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-22 17:45:40 +03:00
62eec43980
All files are now using tabs for indentation
20 lines
368 B
PHP
20 lines
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();
|
|
}
|
|
}
|