|
| __construct (string $clientWebDirectory='') |
|
| replace (array $placeholderValues, string $certificateContent) |
| Replaces placeholder in the certificate content with actual values. More...
|
|
◆ __construct()
ilCertificateValueReplacement::__construct |
( |
string |
$clientWebDirectory = '' | ) |
|
- Parameters
-
string | $clientWebDirectory | - Replacement for the placeholder [CLIENT_WEB_DIR], if the string is empty the constant CLIENT_WEB_DIR will be tried as default value. If CLIENT_WEB_DIR is not defined the default value will be an empty string. |
Definition at line 19 of file class.ilCertificateValueReplacement.php.
References $clientWebDirectory.
◆ replace()
ilCertificateValueReplacement::replace |
( |
array |
$placeholderValues, |
|
|
string |
$certificateContent |
|
) |
| |
Replaces placeholder in the certificate content with actual values.
- Parameters
-
array | $placeholderValues | |
string | $certificateContent | |
- Returns
- string
Definition at line 34 of file class.ilCertificateValueReplacement.php.
36 foreach ($placeholderValues as $placeholder => $value) {
37 $certificateContent = str_replace(
'[' . $placeholder .
']', $value, $certificateContent);
40 return $certificateContent;
◆ $clientWebDirectory
ilCertificateValueReplacement::$clientWebDirectory |
|
private |
The documentation for this class was generated from the following file: