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

Public Member Functions

 __construct (Swift_Transport $source, $response, $valid=false)
 
 getResponse ()
 
 isValid ()
 
- Public Member Functions inherited from Swift_Events_EventObject
 __construct ($source)
 
 getSource ()
 
 cancelBubble ($cancel=true)
 
 bubbleCancelled ()
 

Private Attributes

 $_valid
 
 $_response
 

Detailed Description

Generated when a response is received on a SMTP connection.

Author
Chris Corbyn

Definition at line 16 of file ResponseEvent.php.

Constructor & Destructor Documentation

__construct ( Swift_Transport  $source,
  $response,
  $valid = false 
)

Create a new ResponseEvent for $source and $response.

Parameters
Swift_Transport$source
string$response
bool$valid

Definition at line 39 of file ResponseEvent.php.

References $response.

Member Function Documentation

getResponse ( )

Get the response which was received from the server.

Returns
string

Definition at line 51 of file ResponseEvent.php.

References $_response.

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

isValid ( )

Get the success status of this Event.

Returns
bool

Definition at line 61 of file ResponseEvent.php.

References $_valid.

Member Data Documentation

$_response
private

Definition at line 30 of file ResponseEvent.php.

Referenced by getResponse().

$_valid
private

Definition at line 23 of file ResponseEvent.php.

Referenced by isValid().