ILIAS  release_8 Revision v8.23
class.ilCertificateValueReplacement.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
25 {
26  public function replace(array $placeholderValues, string $certificateContent): string
27  {
28  foreach ($placeholderValues as $placeholder => $value) {
29  $certificateContent = str_replace('[' . $placeholder . ']', $value, $certificateContent);
30  }
31 
32  return $certificateContent;
33  }
34 }
replace(array $placeholderValues, string $certificateContent)