[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/composer/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/ -> AntiFloodPlugin.php (summary)

(no description)

File Size: 137 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Swift_Plugins_AntiFloodPlugin:: (8 methods):
  __construct()
  setThreshold()
  getThreshold()
  setSleepTime()
  getSleepTime()
  beforeSendPerformed()
  sendPerformed()
  sleep()


Class: Swift_Plugins_AntiFloodPlugin  - X-Ref

Reduces network flooding when sending large amounts of mail.

__construct($threshold = 99, $sleep = 0, Swift_Plugins_Sleeper $sleeper = null)   X-Ref
Create a new AntiFloodPlugin with $threshold and $sleep time.

param: int                   $threshold
param: int                   $sleep     time
param: Swift_Plugins_Sleeper $sleeper   (not needed really)

setThreshold($threshold)   X-Ref
Set the number of emails to send before restarting.

param: int $threshold

getThreshold()   X-Ref
Get the number of emails to send before restarting.

return: int

setSleepTime($sleep)   X-Ref
Set the number of seconds to sleep for during a restart.

param: int $sleep time

getSleepTime()   X-Ref
Get the number of seconds to sleep for during a restart.

return: int

beforeSendPerformed(Swift_Events_SendEvent $evt)   X-Ref
Invoked immediately before the Message is sent.


sendPerformed(Swift_Events_SendEvent $evt)   X-Ref
Invoked immediately after the Message is sent.


sleep($seconds)   X-Ref
Sleep for $seconds.

param: int $seconds



Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1