XOOPS RMCommon Utilities
2.1.8.91RC
Main Page
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
HitReporter.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
11
//@require 'Swift/Plugins/Reporter.php';
12
//@require 'Swift/Mime/Message.php';
13
20
class
Swift_Plugins_Reporters_HitReporter
implements
Swift_Plugins_Reporter
21
{
22
28
private
$_failures
= array();
29
private
$_failures_cache
= array();
30
37
public
function
notify
(
Swift_Mime_Message
$message, $address,
$result
)
38
{
39
if
(self::RESULT_FAIL ==
$result
&& !isset($this->_failures_cache[$address]))
40
{
41
$this->_failures[] = $address;
42
$this->_failures_cache[$address] =
true
;
43
}
44
}
45
50
public
function
getFailedRecipients
()
51
{
52
return
$this->_failures
;
53
}
54
58
public
function
clear
()
59
{
60
$this->_failures = $this->_failures_cache = array();
61
}
62
63
}
L:
XOOPS_Allure
SVN_XOOPS2
RMC
rmcommon
trunk
rmcommon
class
swift
classes
Swift
Plugins
Reporters
HitReporter.php
Generated on Sun Mar 17 2013 20:41:06 for XOOPS RMCommon Utilities by
1.8.3.1