19 declare(strict_types=1);
37 if (null === $language) {
38 $language = $DIC->language();
43 if (null === $defaultPlaceholderDescriptionObject) {
46 $userDefinedFieldPlaceHolderDescriptionObject
49 $this->defaultPlaceHolderDescriptionObject = $defaultPlaceholderDescriptionObject;
51 $this->placeholder = $this->defaultPlaceHolderDescriptionObject->getPlaceholderDescriptions();
54 $this->
language->txt(
'certificate_var_result_passed')
57 $this->
language->txt(
'certificate_var_result_points')
60 $this->
language->txt(
'certificate_var_result_percent')
63 $this->
language->txt(
'certificate_var_max_points')
66 $this->
language->txt(
'certificate_var_result_mark_short')
69 $this->
language->txt(
'certificate_var_result_mark_long')
72 $this->
language->txt(
'certificate_ph_testtitle')
75 $language->
txt(
'certificate_ph_date_completed')
78 $language->
txt(
'certificate_ph_datetime_completed')
90 if (null === $template) {
91 $template =
new ilTemplate(
'tpl.default_description.html',
true,
true,
'Services/Certificate');
94 $template->setVariable(
'PLACEHOLDER_INTRODUCTION', $this->
language->txt(
'certificate_ph_introduction'));
96 $template->setCurrentBlock(
'items');
97 foreach ($this->placeholder as
$id => $caption) {
98 $template->setVariable(
'ID',
$id);
99 $template->setVariable(
'TXT', $caption);
100 $template->parseCurrentBlock();
103 return $template->get();
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
createPlaceholderHtmlDescription(?ilTemplate $template=null)
This methods MUST return an array containing an array with the the description as array value...
loadLanguageModule(string $a_module)
Load language module.
__construct(?ilDefaultPlaceholderDescription $defaultPlaceholderDescriptionObject=null, ?ilLanguage $language=null, ?ilUserDefinedFieldsPlaceholderDescription $userDefinedFieldPlaceHolderDescriptionObject=null)
ilDefaultPlaceholderDescription $defaultPlaceHolderDescriptionObject
getPlaceholderDescriptions()
This method MUST return an array containing an array with the the description as array value...
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Collection of basic placeholder values that can be used.