TYPO3  7.6
Public Member Functions | Private Attributes | List of all members
Swift_Events_CommandEvent Class Reference
Inheritance diagram for Swift_Events_CommandEvent:
Swift_Events_EventObject Swift_Events_Event

Public Member Functions

 __construct (Swift_Transport $source, $command, $successCodes=array())
 
 getCommand ()
 
 getSuccessCodes ()
 
- Public Member Functions inherited from Swift_Events_EventObject
 __construct ($source)
 
 getSource ()
 
 cancelBubble ($cancel=true)
 
 bubbleCancelled ()
 

Private Attributes

 $_command
 
 $_successCodes = array()
 

Detailed Description

Generated when a command is sent over an SMTP connection.

Author
Chris Corbyn

Definition at line 16 of file CommandEvent.php.

Constructor & Destructor Documentation

__construct ( Swift_Transport  $source,
  $command,
  $successCodes = array() 
)

Create a new CommandEvent for $source with $command.

Parameters
Swift_Transport$source
string$command
array$successCodes

Definition at line 39 of file CommandEvent.php.

Member Function Documentation

getCommand ( )

Get the command which was sent to the server.

Returns
string

Definition at line 51 of file CommandEvent.php.

References $_command.

Referenced by Swift_Plugins_BandwidthMonitorPlugin\commandSent(), and Swift_Plugins_LoggerPlugin\commandSent().

getSuccessCodes ( )

Get the numeric response codes which indicate success for this command.

Returns
integer[]

Definition at line 61 of file CommandEvent.php.

References $_successCodes.

Member Data Documentation

$_command
private

Definition at line 23 of file CommandEvent.php.

Referenced by getCommand().

$_successCodes = array()
private

Definition at line 30 of file CommandEvent.php.

Referenced by getSuccessCodes().