TYPO3  7.6
EchoLogger.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of SwiftMailer.
5  * (c) 2004-2009 Chris Corbyn
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10 
17 {
19  private $_isHtml;
20 
26  public function __construct($isHtml = true)
27  {
28  $this->_isHtml = $isHtml;
29  }
30 
36  public function add($entry)
37  {
38  if ($this->_isHtml) {
39  printf('%s%s%s', htmlspecialchars($entry, ENT_QUOTES), '<br />', PHP_EOL);
40  } else {
41  printf('%s%s', $entry, PHP_EOL);
42  }
43  }
44 
48  public function clear()
49  {
50  }
51 
55  public function dump()
56  {
57  }
58 }