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