TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
vendor
swiftmailer
swiftmailer
lib
classes
Swift
Plugins
Loggers
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
16
class
Swift_Plugins_Loggers_EchoLogger
implements
Swift_Plugins_Logger
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
}
Generated on Wed Nov 11 2015 01:51:54 for TYPO3 by
1.8.3