XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
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 
19 {
20 
22  private $_isHtml;
23 
29  public function __construct($isHtml = true)
30  {
31  $this->_isHtml = $isHtml;
32  }
33 
38  public function add($entry)
39  {
40  if ($this->_isHtml)
41  {
42  printf('%s%s%s', htmlspecialchars($entry, ENT_QUOTES), '<br />', PHP_EOL);
43  }
44  else
45  {
46  printf('%s%s', $entry, PHP_EOL);
47  }
48  }
49 
53  public function clear()
54  {
55  }
56 
60  public function dump()
61  {
62  }
63 
64 }