3 declare(strict_types=1);
50 if (null === $language) {
51 $language = $DIC->language();
52 $language->loadLanguageModule(
'certificate');
56 if (null === $defaultPlaceholderDescriptionObject) {
59 $this->defaultPlaceHolderDescriptionObject = $defaultPlaceholderDescriptionObject;
61 $this->placeholder = $this->defaultPlaceHolderDescriptionObject->getPlaceholderDescriptions();
64 $this->
language->txt(
'cmix_cert_ph_object_title')
67 $this->
language->txt(
'cmix_cert_ph_object_description')
70 $this->
language->txt(
'cmix_cert_ph_reached_score')
84 if (null === $template) {
85 $template =
new ilTemplate(
'tpl.default_description.html',
true,
true,
'Services/Certificate');
88 $template->setVariable(
'PLACEHOLDER_INTRODUCTION', $this->
language->txt(
'certificate_ph_introduction'));
90 $template->setCurrentBlock(
'items');
91 foreach ($this->placeholder as
$id => $caption) {
92 $template->setVariable(
'ID',
$id);
93 $template->setVariable(
'TXT', $caption);
94 $template->parseCurrentBlock();
97 return $template->get();
createPlaceholderHtmlDescription(ilTemplate $template=null)
ilDefaultPlaceholderDescription $defaultPlaceHolderDescriptionObject
__construct(ilDefaultPlaceholderDescription $defaultPlaceholderDescriptionObject=null, ilLanguage $language=null, ilUserDefinedFieldsPlaceholderDescription $userDefinedFieldPlaceHolderDescriptionObject=null)
getPlaceholderDescriptions()
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Collection of basic placeholder values that can be used.