19 declare(strict_types=1);
30 $this->placeholder = [];
32 if (null === $userDefinedFieldsObject) {
35 $userDefinedFields = $userDefinedFieldsObject->getDefinitions();
37 foreach ($userDefinedFields as $field) {
38 if ($field[
'certificate']) {
39 $placeholderText =
'#' . str_replace(
' ',
'_',
ilStr::strToUpper($field[
'field_name']));
41 $this->placeholder[$placeholderText] = $field[
'field_name'];
62 'tpl.common_desc.html',
65 'Services/Certificate' 69 $template->setCurrentBlock(
'cert_field');
70 $template->setVariable(
'PH',
$key);
71 $template->setVariable(
'PH_TXT', $field);
72 $template->parseCurrentBlock();
75 return $template->get();
createPlaceholderHtmlDescription()
Additional user data fields definition.
static strToUpper(string $a_string)
__construct(?ilUserDefinedFields $userDefinedFieldsObject=null)
getPlaceholderDescriptions()
This method MUST return an array containing an array with the the description as array value...