ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
MailSignatureUserFullnamePlaceholder.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 ilUserUtil;
25 
27 {
28  public function __construct(ilLanguage $lng, private readonly int $user_id)
29  {
30  parent::__construct($lng);
31  }
32 
33  public function getId(): string
34  {
35  return 'USER_FULLNAME';
36  }
37 
38  public function addPlaceholder(array $placeholder): array
39  {
40  $placeholder[$this->getId()] = ilUserUtil::getNamePresentation($this->user_id);
41 
42  return $placeholder;
43  }
44 }
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:
__construct(Container $dic, ilPlugin $plugin)
global $lng
Definition: privfeed.php:31