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