ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
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
 setNext (self $next)
 

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.

References ILIAS\GlobalScreen\Provider\__construct().

29  {
30  parent::__construct($lng);
31  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ addPlaceholder()

ILIAS\Mail\Placeholder\MailSignatureUserFullnamePlaceholder::addPlaceholder ( array  $placeholder)

Definition at line 38 of file MailSignatureUserFullnamePlaceholder.php.

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

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='ilpublicuserprofilegui')
Default behaviour is:
+ 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.

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

33  : string
34  {
35  return 'USER_FULLNAME';
36  }
+ Here is the caller graph for this function:

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