ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Mail\Placeholder\AbstractPlaceholderHandler Class Reference
+ Inheritance diagram for ILIAS\Mail\Placeholder\AbstractPlaceholderHandler:
+ Collaboration diagram for ILIAS\Mail\Placeholder\AbstractPlaceholderHandler:

Public Member Functions

 __construct (protected ilLanguage $lng)
 
 getLabel ()
 
 setNext (Placeholder $next)
 
 getNext ()
 
 handle (Signature $signature)
 
 addPlaceholder (array $placeholder)
 
- Public Member Functions inherited from ILIAS\Mail\Placeholder\Placeholder
 getId ()
 
 getLabel ()
 
 handle (Signature $signature)
 
 setNext (self $next)
 
 getNext ()
 

Protected Attributes

Placeholder $next = null
 

Detailed Description

Definition at line 26 of file AbstractPlaceholderHandler.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Mail\Placeholder\AbstractPlaceholderHandler::__construct ( protected ilLanguage  $lng)

Definition at line 30 of file AbstractPlaceholderHandler.php.

31 {
32 }

Member Function Documentation

◆ addPlaceholder()

ILIAS\Mail\Placeholder\AbstractPlaceholderHandler::addPlaceholder ( array  $placeholder)
abstract

◆ getLabel()

ILIAS\Mail\Placeholder\AbstractPlaceholderHandler::getLabel ( )

Implements ILIAS\Mail\Placeholder\Placeholder.

Definition at line 34 of file AbstractPlaceholderHandler.php.

34 : string
35 {
36 return $this->lng->txt('mail_nacc_' . strtolower($this->getId()));
37 }

References ILIAS\Mail\Placeholder\Placeholder\getId(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getNext()

ILIAS\Mail\Placeholder\AbstractPlaceholderHandler::getNext ( )

◆ handle()

ILIAS\Mail\Placeholder\AbstractPlaceholderHandler::handle ( Signature  $signature)
Returns
string<string, string>

Implements ILIAS\Mail\Placeholder\Placeholder.

Definition at line 54 of file AbstractPlaceholderHandler.php.

54 : 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 }

References ILIAS\Mail\Placeholder\AbstractPlaceholderHandler\addPlaceholder(), ILIAS\User\Profile\ChangeMail\next, and ILIAS\Mail\Signature\Signature\supports().

+ Here is the call graph for this function:

◆ setNext()

ILIAS\Mail\Placeholder\AbstractPlaceholderHandler::setNext ( Placeholder  $next)

Field Documentation

◆ $next

Placeholder ILIAS\Mail\Placeholder\AbstractPlaceholderHandler::$next = null
protected

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