[ Index ]

MailPress 544

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

title

Body

[close]

/mp-includes/Swiftmailer/classes/Swift/Plugins/ -> AntiFloodPlugin.php (summary)

(no description)

File Size: 141 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.

param: Swift_Events_SendEvent $evt

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

param: Swift_Events_SendEvent $evt

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

param: int $seconds



Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1