19 declare(strict_types=1);
37 if (null === $language) {
38 $language = $DIC->language();
39 $language->loadLanguageModule(
'certificate');
43 if (null === $defaultPlaceholderDescriptionObject) {
46 $userDefinedFieldPlaceHolderDescriptionObject
49 $this->defaultPlaceHolderDescriptionObject = $defaultPlaceholderDescriptionObject;
51 $this->placeholder = $this->defaultPlaceHolderDescriptionObject->getPlaceholderDescriptions();
54 $language->txt(
'certificate_var_result_passed')
57 $language->txt(
'certificate_var_result_mark_short')
60 $language->txt(
'certificate_ph_exercisetitle')
63 $language->txt(
'certificate_ph_datetime_completed')
66 $language->txt(
'certificate_ph_datetime_completed')
77 if (null === $template) {
78 $template =
new ilTemplate(
'tpl.default_description.html',
true,
true,
'Services/Certificate');
81 $template->setVariable(
'PLACEHOLDER_INTRODUCTION', $this->
language->txt(
'certificate_ph_introduction'));
83 $template->setCurrentBlock(
'items');
84 foreach ($this->placeholder as
$id => $caption) {
85 $template->setVariable(
'ID',
$id);
86 $template->setVariable(
'TXT', $caption);
87 $template->parseCurrentBlock();
90 return $template->get();
createPlaceholderHtmlDescription(?ilTemplate $template=null)
This methods MUST return an array containing an array with the the description as array value...
getPlaceholderDescriptions()
This method MUST return an array containing an array with the the description as array value...
readonly ilLanguage $language
__construct(?ilDefaultPlaceholderDescription $defaultPlaceholderDescriptionObject=null, ?ilLanguage $language=null, ?ilUserDefinedFieldsPlaceholderDescription $userDefinedFieldPlaceHolderDescriptionObject=null)
readonly ilDefaultPlaceholderDescription $defaultPlaceHolderDescriptionObject
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Collection of basic placeholder values that can be used.