TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
vendor
swiftmailer
swiftmailer
lib
classes
Swift
Plugins
MessageLogger.php
Go to the documentation of this file.
1
<?php
2
3
/*
4
* This file is part of SwiftMailer.
5
* (c) 2011 Fabien Potencier
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_MessageLogger
implements
Swift_Events_SendListener
17
{
21
private
$messages
;
22
23
public
function
__construct
()
24
{
25
$this->messages = array();
26
}
27
33
public
function
getMessages
()
34
{
35
return
$this->messages
;
36
}
37
43
public
function
countMessages
()
44
{
45
return
count($this->messages);
46
}
47
51
public
function
clear
()
52
{
53
$this->messages = array();
54
}
55
61
public
function
beforeSendPerformed
(
Swift_Events_SendEvent
$evt)
62
{
63
$this->messages[] = clone $evt->
getMessage
();
64
}
65
71
public
function
sendPerformed
(
Swift_Events_SendEvent
$evt)
72
{
73
}
74
}
Generated on Wed Nov 11 2015 01:51:59 for TYPO3 by
1.8.3