47 lines
862 B
PHP
47 lines
862 B
PHP
<?php
|
|
/**
|
|
* Since 2013 Ovidiu Cimpean.
|
|
*
|
|
* Ovidiu Cimpean - Newsletter Pro © All rights reserved.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit, modify or copy this file.
|
|
* If you wish to customize it, contact us at addons4prestashop@gmail.com.
|
|
*
|
|
* @author Ovidiu Cimpean <addons4prestashop@gmail.com>
|
|
* @copyright Since 2013 Ovidiu Cimpean
|
|
* @license Do not edit, modify or copy this file
|
|
*
|
|
* @version Release: 4
|
|
*/
|
|
|
|
class NewsletterProOutput
|
|
{
|
|
private $data;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->data = [];
|
|
}
|
|
|
|
public function append($str)
|
|
{
|
|
$this->data[] = $str;
|
|
}
|
|
|
|
public function render($textPlain = false)
|
|
{
|
|
if ($textPlain) {
|
|
header('Content-Type: text/plain');
|
|
}
|
|
|
|
return implode('', $this->data);
|
|
}
|
|
|
|
public function clear()
|
|
{
|
|
$this->data = [];
|
|
}
|
|
}
|