Blesta
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • blesta
    • app
      • components
        • events
          • default
      • controllers
      • models
    • components
      • auth
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • exchange
        • rates
          • foxrate
          • google
            • finance
          • yahoo
            • finance
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
      • json
      • modules
      • net
        • http
        • net
          • amazon
            • s3
          • geo
            • ip
      • plugins
      • recaptcha
      • security
      • session
        • cart
      • settingscollection
      • upgrades
      • upload
      • vcard
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
  • com
    • tecnick
      • tcpdf
        • blesta
          • components
            • invoice
              • templates
                • quickbooks
                  • invoice
                • templates
                  • default
  • Crypt
    • AES
    • DES
    • Hash
    • Random
    • RC4
    • Rijndael
    • RSA
    • TerraDES
  • File
    • ANSI
    • ASN1
    • X509
  • Math
    • BigInteger
  • minPHP
    • components
      • input
      • record
    • helpers
      • color
      • data
        • structure
      • date
      • html
      • xml
    • lib
  • Net
    • SFTP
    • SSH1
    • SSH2
  • None
  • PHP
  • PHPMailer
  • Services
    • JSON
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • Swift_Plugins_AntiFloodPlugin
  • Swift_Plugins_BandwidthMonitorPlugin
  • Swift_Plugins_DecoratorPlugin
  • Swift_Plugins_ImpersonatePlugin
  • Swift_Plugins_LoggerPlugin
  • Swift_Plugins_MessageLogger
  • Swift_Plugins_PopBeforeSmtpPlugin
  • Swift_Plugins_RedirectingPlugin
  • Swift_Plugins_ReporterPlugin
  • Swift_Plugins_Reporters_HitReporter
  • Swift_Plugins_Reporters_HtmlReporter
  • Swift_Plugins_ThrottlerPlugin

Interfaces

  • Swift_Plugins_Decorator_Replacements
  • Swift_Plugins_Pop_Pop3Connection
  • Swift_Plugins_Reporter
  • Swift_Plugins_Sleeper
  • Swift_Plugins_Timer

Class Swift_Plugins_BandwidthMonitorPlugin

Reduces network flooding when sending large amounts of mail.

Swift_Plugins_BandwidthMonitorPlugin implements Swift_Events_SendListener, Swift_Events_CommandListener, Swift_Events_ResponseListener, Swift_InputByteStream

Direct known subclasses

Swift_Plugins_ThrottlerPlugin

Package: Swift\Plugins
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/Plugins/BandwidthMonitorPlugin.php

Methods summary

public
# beforeSendPerformed( Swift_Events_SendEvent $evt )

Not used.

Not used.

Parameters

$evt
Swift_Events_SendEvent
$evt

Implementation of

Swift_Events_SendListener::beforeSendPerformed()
public
# sendPerformed( Swift_Events_SendEvent $evt )

Invoked immediately after the Message is sent.

Invoked immediately after the Message is sent.

Parameters

$evt
Swift_Events_SendEvent
$evt

Implementation of

Swift_Events_SendListener::sendPerformed()
public
# commandSent( Swift_Events_CommandEvent $evt )

Invoked immediately following a command being sent.

Invoked immediately following a command being sent.

Parameters

$evt
Swift_Events_ResponseEvent
$evt

Implementation of

Swift_Events_CommandListener::commandSent()
public
# responseReceived( Swift_Events_ResponseEvent $evt )

Invoked immediately following a response coming back.

Invoked immediately following a response coming back.

Parameters

$evt
Swift_Events_ResponseEvent
$evt

Implementation of

Swift_Events_ResponseListener::responseReceived()
public integer
# write( string $bytes )

Called when a message is sent so that the outgoing counter can be increased.

Called when a message is sent so that the outgoing counter can be increased.

Parameters

$bytes
string
$bytes

Returns

integer

Throws

Swift_IoException

Implementation of

Swift_InputByteStream::write()
public
# commit( )

Not used.

Not used.

Throws

Swift_IoException

Implementation of

Swift_InputByteStream::commit()
public
# bind( Swift_InputByteStream $is )

Attach $is to this stream. The stream acts as an observer, receiving all data that is written. All Swift_Plugins_BandwidthMonitorPlugin::write() and Swift_Plugins_BandwidthMonitorPlugin::flushBuffers() operations will be mirrored.

Attach $is to this stream. The stream acts as an observer, receiving all data that is written. All Swift_Plugins_BandwidthMonitorPlugin::write() and Swift_Plugins_BandwidthMonitorPlugin::flushBuffers() operations will be mirrored.

Parameters

$is
Swift_InputByteStream
$is

Implementation of

Swift_InputByteStream::bind()
public
# unbind( Swift_InputByteStream $is )

Remove an already bound stream. If $is is not bound, no errors will be raised. If the stream currently has any buffered data it will be written to $is before unbinding occurs.

Remove an already bound stream. If $is is not bound, no errors will be raised. If the stream currently has any buffered data it will be written to $is before unbinding occurs.

Parameters

$is
Swift_InputByteStream
$is

Implementation of

Swift_InputByteStream::unbind()
public
# flushBuffers( )

Not used.

Not used.

Throws

Swift_IoException

Implementation of

Swift_InputByteStream::flushBuffers()
public integer
# getBytesOut( )

Get the total number of bytes sent to the server.

Get the total number of bytes sent to the server.

Returns

integer
public integer
# getBytesIn( )

Get the total number of bytes received from the server.

Get the total number of bytes received from the server.

Returns

integer
public
# reset( )

Reset the internal counters to zero.

Reset the internal counters to zero.

Magic methods summary

Properties summary

private integer $_out
#

The outgoing traffic counter.

The outgoing traffic counter.

private integer $_in
#

The incoming traffic counter.

The incoming traffic counter.

private array $_mirrors
#

Bound byte streams

Bound byte streams

Blesta API documentation generated by ApiGen 2.8.0