ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ 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
54
public
function
handle
(
Signature
$signature): array
55
{
56
$placeholders = [];
57
58
if
($this->
next
) {
59
$placeholders = $this->
next
->handle($signature);
60
}
61
62
if
($signature->
supports
($this)) {
63
$placeholders = $this->
addPlaceholder
($placeholders);
64
}
65
66
return
$placeholders;
67
}
68
73
abstract
public
function
addPlaceholder
(array $placeholder): array;
74
}
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()
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:144
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:31
ILIAS\Mail\Placeholder\Placeholder
Definition:
Placeholder.php:25
ILIAS\Mail\Placeholder\AbstractPlaceholderHandler\handle
handle(Signature $signature)
Definition:
AbstractPlaceholderHandler.php:54
ILIAS\Mail\Placeholder\AbstractPlaceholderHandler\setNext
setNext(Placeholder $next)
Definition:
AbstractPlaceholderHandler.php:39
Signature
components
ILIAS
Mail
classes
Placeholder
AbstractPlaceholderHandler.php
Generated on Sun Aug 31 2025 23:03:19 for ILIAS by
1.8.13 (using
Doxyfile
)