ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilMailMimeTransportFactory.php
Go to the documentation of this file.
1
<?php declare(strict_types=1);
2
3
/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
class
ilMailMimeTransportFactory
6
{
8
protected
$settings
;
9
11
private
$eventHandler
;
12
18
public
function
__construct
(
ilSetting
$settings
,
ilAppEventHandler
$eventHandler
)
19
{
20
$this->
settings
=
$settings
;
21
$this->eventHandler =
$eventHandler
;
22
}
23
27
public
function
getTransport
() :
ilMailMimeTransport
28
{
29
if
(!(
bool
) $this->
settings
->get(
'mail_allow_external'
)) {
30
return
new
ilMailMimeTransportNull
();
31
}
32
33
if
((
bool
) $this->
settings
->get(
'mail_smtp_status'
)) {
34
return
new
ilMailMimeTransportSmtp
($this->
settings
, $this->eventHandler);
35
}
36
37
return
new
ilMailMimeTransportSendmail
($this->
settings
, $this->eventHandler);
38
}
39
}
ilAppEventHandler
Global event handler.
Definition:
class.ilAppEventHandler.php:58
ilMailMimeTransportFactory\getTransport
getTransport()
Definition:
class.ilMailMimeTransportFactory.php:27
settings
settings()
Definition:
settings.php:2
ilMailMimeTransportFactory
Definition:
class.ilMailMimeTransportFactory.php:5
ilMailMimeTransportFactory\__construct
__construct(ilSetting $settings, ilAppEventHandler $eventHandler)
ilMailMimeTransportFactory constructor.
Definition:
class.ilMailMimeTransportFactory.php:18
ilMailMimeTransportFactory\$settings
$settings
Definition:
class.ilMailMimeTransportFactory.php:8
ilMailMimeTransportSmtp
Class ilMailMimeTransportSmtp.
Definition:
class.ilMailMimeTransportSmtp.php:7
ilMailMimeTransportNull
Class ilMailMimeTransportNull.
Definition:
class.ilMailMimeTransportNull.php:7
ilMailMimeTransport
Interface ilMailMimeTransport.
Definition:
interface.ilMailMimeTransport.php:7
ilMailMimeTransportFactory\$eventHandler
$eventHandler
Definition:
class.ilMailMimeTransportFactory.php:11
ilMailMimeTransportSendmail
Class ilMailMimeTransportSendmail.
Definition:
class.ilMailMimeTransportSendmail.php:7
ilSetting
Services
Mail
classes
Mime
Transport
class.ilMailMimeTransportFactory.php
Generated on Thu Apr 3 2025 20:01:08 for ILIAS by
1.8.13 (using
Doxyfile
)