ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilMailMimeTransportFactory Class Reference
+ Collaboration diagram for ilMailMimeTransportFactory:

Public Member Functions

 __construct (\ilSetting $settings, \ilAppEventHandler $eventHandler)
 ilMailMimeTransportFactory constructor. More...
 
 getTransport ()
 

Protected Attributes

 $settings
 

Private Attributes

 $eventHandler
 

Detailed Description

Definition at line 4 of file class.ilMailMimeTransportFactory.php.

Constructor & Destructor Documentation

◆ __construct()

ilMailMimeTransportFactory::__construct ( \ilSetting  $settings,
\ilAppEventHandler  $eventHandler 
)

ilMailMimeTransportFactory constructor.

Parameters
ilSetting$settings
ilAppEventHandler$eventHandler

Definition at line 17 of file class.ilMailMimeTransportFactory.php.

References $eventHandler, $settings, and settings().

+ Here is the call graph for this function:

Member Function Documentation

◆ getTransport()

ilMailMimeTransportFactory::getTransport ( )
Returns
ilMailMimeTransport

Definition at line 26 of file class.ilMailMimeTransportFactory.php.

References settings().

27  {
28  if (!(bool) $this->settings->get('mail_allow_external')) {
29  return new ilMailMimeTransportNull();
30  }
31 
32  if ((bool) $this->settings->get('mail_smtp_status')) {
33  return new ilMailMimeTransportSmtp($this->settings, $this->eventHandler);
34  } else {
35  return new ilMailMimeTransportSendmail($this->settings, $this->eventHandler);
36  }
37  }
settings()
Definition: settings.php:2
Class ilMailMimeTransportSmtp.
Class ilMailMimeTransportNull.
Class ilMailMimeTransportSendmail.
+ Here is the call graph for this function:

Field Documentation

◆ $eventHandler

ilMailMimeTransportFactory::$eventHandler
private

Definition at line 10 of file class.ilMailMimeTransportFactory.php.

Referenced by __construct().

◆ $settings

ilMailMimeTransportFactory::$settings
protected

Definition at line 7 of file class.ilMailMimeTransportFactory.php.

Referenced by __construct().


The documentation for this class was generated from the following file: