XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
__construct ($threshold=99, $sleep=0, Swift_Plugins_Sleeper $sleeper=null) | |
beforeSendPerformed (Swift_Events_SendEvent $evt) | |
getSleepTime () | |
getThreshold () | |
sendPerformed (Swift_Events_SendEvent $evt) | |
setSleepTime ($sleep) | |
setThreshold ($threshold) | |
sleep ($seconds) | |
Private Attributes | |
$_counter = 0 | |
$_sleep | |
$_sleeper | |
$_threshold | |
Definition at line 21 of file AntiFloodPlugin.php.
Swift_Plugins_AntiFloodPlugin::__construct | ( | $threshold = 99 , |
|
$sleep = 0 , |
|||
Swift_Plugins_Sleeper | $sleeper = null |
||
) |
Create a new AntiFloodPlugin with $threshold and $sleep time.
int | $threshold | |
int | $sleep | time |
Swift_Plugins_Sleeper | $sleeper | (not needed really) |
Definition at line 59 of file AntiFloodPlugin.php.
References setSleepTime(), and setThreshold().
Swift_Plugins_AntiFloodPlugin::beforeSendPerformed | ( | Swift_Events_SendEvent | $evt | ) |
Invoked immediately before the Message is sent.
Swift_Events_SendEvent | $evt |
Implements Swift_Events_SendListener.
Definition at line 107 of file AntiFloodPlugin.php.
Swift_Plugins_AntiFloodPlugin::getSleepTime | ( | ) |
Get the number of seconds to sleep for during a restart.
Definition at line 98 of file AntiFloodPlugin.php.
References $_sleep.
Swift_Plugins_AntiFloodPlugin::getThreshold | ( | ) |
Get the number of emails to send before restarting.
Definition at line 80 of file AntiFloodPlugin.php.
References $_threshold.
Swift_Plugins_AntiFloodPlugin::sendPerformed | ( | Swift_Events_SendEvent | $evt | ) |
Invoked immediately after the Message is sent.
Swift_Events_SendEvent | $evt |
Implements Swift_Events_SendListener.
Definition at line 115 of file AntiFloodPlugin.php.
References $_counter, Swift_Events_SendEvent\getTransport(), and sleep().
Swift_Plugins_AntiFloodPlugin::setSleepTime | ( | $sleep | ) |
Set the number of seconds to sleep for during a restart.
int | $sleep | time |
Definition at line 89 of file AntiFloodPlugin.php.
Referenced by __construct().
Swift_Plugins_AntiFloodPlugin::setThreshold | ( | $threshold | ) |
Set the number of emails to send before restarting.
int | $threshold |
Definition at line 71 of file AntiFloodPlugin.php.
Referenced by __construct().
Swift_Plugins_AntiFloodPlugin::sleep | ( | $seconds | ) |
Sleep for $seconds.
int | $seconds |
Implements Swift_Plugins_Sleeper.
Definition at line 135 of file AntiFloodPlugin.php.
Referenced by sendPerformed().
|
private |
Definition at line 44 of file AntiFloodPlugin.php.
Referenced by sendPerformed().
|
private |
Definition at line 37 of file AntiFloodPlugin.php.
Referenced by getSleepTime().
|
private |
Definition at line 51 of file AntiFloodPlugin.php.
|
private |
Definition at line 30 of file AntiFloodPlugin.php.
Referenced by getThreshold().