2013-08-11 13:30:41 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Plaintext
|
|
|
|
* Returns $this->items as raw php data.
|
|
|
|
*/
|
|
|
|
class PlaintextFormat extends FormatAbstract{
|
|
|
|
|
|
|
|
public function stringify(){
|
2016-08-29 19:42:58 +02:00
|
|
|
$datas = $this->getItems();
|
2013-08-11 13:30:41 +02:00
|
|
|
return print_r($datas, true);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function display(){
|
|
|
|
$this
|
|
|
|
->setContentType('text/plain;charset=' . $this->getCharset())
|
|
|
|
->callContentType();
|
|
|
|
|
|
|
|
return parent::display();
|
|
|
|
}
|
|
|
|
}
|