XOOPS RMCommon Utilities
2.1.8.91RC
Main Page
Classes
Files
File List
File Members
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
18
class
Swift_Plugins_Loggers_EchoLogger
implements
Swift_Plugins_Logger
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
}
L:
XOOPS_Allure
SVN_XOOPS2
RMC
rmcommon
trunk
rmcommon
class
swift
classes
Swift
Plugins
Loggers
EchoLogger.php
Generated on Sun Mar 17 2013 20:41:06 for XOOPS RMCommon Utilities by
1.8.3.1