ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilMailMimeTransportFactory.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
class
ilMailMimeTransportFactory
5
{
7
protected
$settings
;
8
10
private
$eventHandler
;
11
17
public
function
__construct
(\
ilSetting
$settings
, \
ilAppEventHandler
$eventHandler
)
18
{
19
$this->
settings
=
$settings
;
20
$this->eventHandler =
$eventHandler
;
21
}
22
26
public
function
getTransport
()
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
}
38
}
ilAppEventHandler
Global event handler.
Definition:
class.ilAppEventHandler.php:58
ilMailMimeTransportFactory\getTransport
getTransport()
Definition:
class.ilMailMimeTransportFactory.php:26
settings
settings()
Definition:
settings.php:2
ilMailMimeTransportFactory
Definition:
class.ilMailMimeTransportFactory.php:4
ilMailMimeTransportFactory\$settings
$settings
Definition:
class.ilMailMimeTransportFactory.php:7
ilMailMimeTransportSmtp
Class ilMailMimeTransportSmtp.
Definition:
class.ilMailMimeTransportSmtp.php:7
ilMailMimeTransportNull
Class ilMailMimeTransportNull.
Definition:
class.ilMailMimeTransportNull.php:7
ilMailMimeTransportFactory\__construct
__construct(\ilSetting $settings, \ilAppEventHandler $eventHandler)
ilMailMimeTransportFactory constructor.
Definition:
class.ilMailMimeTransportFactory.php:17
ilMailMimeTransportFactory\$eventHandler
$eventHandler
Definition:
class.ilMailMimeTransportFactory.php:10
ilMailMimeTransportSendmail
Class ilMailMimeTransportSendmail.
Definition:
class.ilMailMimeTransportSendmail.php:9
php
ilSetting
Services
Mail
classes
Mime
Transport
class.ilMailMimeTransportFactory.php
Generated on Thu Jan 30 2025 19:02:00 for ILIAS by
1.8.13 (using
Doxyfile
)