mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 16:46:30 +02:00
Refonte du code
This commit is contained in:
22
formats/PlaintextFormat.php
Normal file
22
formats/PlaintextFormat.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user