ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
AbstractPlaceholderHandler.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Mail\Placeholder
;
22
23
use
ilLanguage
;
24
use
ILIAS\Mail\Signature\Signature
;
25
26
abstract
class
AbstractPlaceholderHandler
implements
Placeholder
27
{
28
protected
?
Placeholder
$next
= null;
29
30
public
function
__construct
(
protected
ilLanguage
$lng
)
31
{
32
}
33
34
public
function
getLabel
(): string
35
{
36
return
$this->
lng
->txt(
'mail_nacc_'
. strtolower($this->
getId
()));
37
}
38
39
public
function
setNext
(
Placeholder
$next):
Placeholder
40
{
41
$this->
next
=
$next
;
42
43
return
$next
;
44
}
45
46
public
function
getNext
(): ?
Placeholder
47
{
48
return
$this->next
;
49
}
50
55
public
function
handle
(
Signature
$signature): array
56
{
57
$placeholders = [];
58
59
if
($this->
next
) {
60
$placeholders = $this->
next
->handle($signature);
61
}
62
63
if
($signature->
supports
($this)) {
64
$placeholders = $this->
addPlaceholder
($placeholders);
65
}
66
67
return
$placeholders;
68
}
69
74
abstract
public
function
addPlaceholder
(array $placeholder): array;
75
}
ilLanguage
ILIAS\User\Profile\next
Definition:
ChangeMailStatus.php:34
ILIAS\Mail\Placeholder
Definition:
AbstractPlaceholderHandler.php:21
ILIAS\Mail\Placeholder\AbstractPlaceholderHandler\__construct
__construct(protected ilLanguage $lng)
Definition:
AbstractPlaceholderHandler.php:30
ILIAS\Mail\Signature\Signature\supports
supports(Placeholder $placeholder)
ILIAS\Mail\Placeholder\Placeholder\getId
getId()
ILIAS\Mail\Placeholder\AbstractPlaceholderHandler\getLabel
getLabel()
Definition:
AbstractPlaceholderHandler.php:34
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:61
ILIAS\Mail\Placeholder\AbstractPlaceholderHandler\getNext
getNext()
Definition:
AbstractPlaceholderHandler.php:46
ILIAS\Mail\Placeholder\AbstractPlaceholderHandler\addPlaceholder
addPlaceholder(array $placeholder)
ILIAS\Mail\Placeholder\AbstractPlaceholderHandler
Definition:
AbstractPlaceholderHandler.php:26
ILIAS\Mail\Placeholder\AbstractPlaceholderHandler\$next
Placeholder $next
Definition:
AbstractPlaceholderHandler.php:28
ILIAS\Mail\Signature\Signature
Definition:
Signature.php:25
$lng
global $lng
Definition:
privfeed.php:32
ILIAS\Mail\Placeholder\Placeholder
Definition:
Placeholder.php:25
ILIAS\Mail\Placeholder\AbstractPlaceholderHandler\handle
handle(Signature $signature)
Definition:
AbstractPlaceholderHandler.php:55
ILIAS\Mail\Placeholder\AbstractPlaceholderHandler\setNext
setNext(Placeholder $next)
Definition:
AbstractPlaceholderHandler.php:39
Signature
components
ILIAS
Mail
classes
Placeholder
AbstractPlaceholderHandler.php
Generated on Wed Sep 10 2025 15:15:56 for ILIAS by
1.8.13 (using
Doxyfile
)