ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilMailMimeTransportFactory Class Reference
+ Collaboration diagram for ilMailMimeTransportFactory:

Public Member Functions

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

Protected Attributes

 $settings
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilMailMimeTransportFactory::__construct ( \ilSetting  $settings)

ilMailMimeTransportFactory constructor.

Parameters
ilSetting$settings

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

References $settings, and settings().

16  {
17  $this->settings = $settings;
18  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

Member Function Documentation

◆ getTransport()

ilMailMimeTransportFactory::getTransport ( )
Returns
ilMailMimeTransport

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

References settings().

24  {
25  if (!(bool) $this->settings->get('mail_allow_external')) {
26  require_once 'Services/Mail/classes/Mime/Transport/class.ilMailMimeTransportNull.php';
27  return new ilMailMimeTransportNull();
28  }
29 
30  if ((bool) $this->settings->get('mail_smtp_status')) {
31  require_once 'Services/Mail/classes/Mime/Transport/class.ilMailMimeTransportSmtp.php';
32  return new ilMailMimeTransportSmtp($this->settings);
33  } else {
34  require_once 'Services/Mail/classes/Mime/Transport/class.ilMailMimeTransportSendmail.php';
35  return new ilMailMimeTransportSendmail($this->settings);
36  }
37  }
Class ilMailMimeTransportSmtp.
Class ilMailMimeTransportNull.
Class ilMailMimeTransportSendmail.
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

Field Documentation

◆ $settings

ilMailMimeTransportFactory::$settings
protected

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

Referenced by __construct().


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