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

Public Member Functions

 __construct (ilLanguage $lng, private readonly int $user_id)
 
 getId ()
 
 addPlaceholder (array $placeholder)
 
- Public Member Functions inherited from ILIAS\Mail\Placeholder\AbstractPlaceholderHandler
 __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 ()
 

Additional Inherited Members

- Protected Attributes inherited from ILIAS\Mail\Placeholder\AbstractPlaceholderHandler
Placeholder $next = null
 

Detailed Description

Definition at line 26 of file MailSignatureUserFullnamePlaceholder.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Mail\Placeholder\MailSignatureUserFullnamePlaceholder::__construct ( ilLanguage  $lng,
private readonly int  $user_id 
)

Definition at line 28 of file MailSignatureUserFullnamePlaceholder.php.

29 {
31 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $lng
Definition: privfeed.php:31

References $lng, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ addPlaceholder()

ILIAS\Mail\Placeholder\MailSignatureUserFullnamePlaceholder::addPlaceholder ( array  $placeholder)
Parameters
array<string,string>$placeholder
Returns
array<string, string>

Reimplemented from ILIAS\Mail\Placeholder\AbstractPlaceholderHandler.

Definition at line 38 of file MailSignatureUserFullnamePlaceholder.php.

38 : array
39 {
40 $placeholder[$this->getId()] = ilUserUtil::getNamePresentation($this->user_id);
41
42 return $placeholder;
43 }
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link='', bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path=null)
Default behaviour is:

References ILIAS\Mail\Placeholder\MailSignatureUserFullnamePlaceholder\getId(), and ilUserUtil\getNamePresentation().

+ Here is the call graph for this function:

◆ getId()

ILIAS\Mail\Placeholder\MailSignatureUserFullnamePlaceholder::getId ( )

Implements ILIAS\Mail\Placeholder\Placeholder.

Definition at line 33 of file MailSignatureUserFullnamePlaceholder.php.

33 : string
34 {
35 return 'USER_FULLNAME';
36 }

Referenced by ILIAS\Mail\Placeholder\MailSignatureUserFullnamePlaceholder\addPlaceholder().

+ Here is the caller graph for this function:

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