19declare(strict_types=1);
49 $profile =
$DIC[
'user']->getProfile();
57 if (
null === $defaultPlaceholderDescriptionObject) {
60 $this->defaultPlaceHolderDescriptionObject = $defaultPlaceholderDescriptionObject;
62 $this->placeholder = $this->defaultPlaceHolderDescriptionObject->getPlaceholderDescriptions();
65 $this->
language->txt(
'cmix_cert_ph_object_title')
68 $this->
language->txt(
'cmix_cert_ph_object_description')
71 $this->
language->txt(
'cmix_cert_ph_reached_score')
85 if (
null === $template) {
86 $template =
new ilTemplate(
'tpl.default_description.html',
true,
true,
'components/ILIAS/Certificate');
89 $template->setVariable(
'PLACEHOLDER_INTRODUCTION', $this->
language->txt(
'certificate_ph_introduction'));
91 $template->setCurrentBlock(
'items');
92 foreach ($this->placeholder as
$id => $caption) {
93 $template->setVariable(
'ID',
$id);
94 $template->setVariable(
'TXT', $caption);
95 $template->parseCurrentBlock();
98 return $template->get();
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
createPlaceholderHtmlDescription(?ilTemplate $template=null)
__construct(?ilDefaultPlaceholderDescription $defaultPlaceholderDescriptionObject=null, ?ilLanguage $language=null, ?ilUserDefinedFieldsPlaceholderDescription $userDefinedFieldPlaceHolderDescriptionObject=null)
getPlaceholderDescriptions()
ilDefaultPlaceholderDescription $defaultPlaceHolderDescriptionObject
Collection of basic placeholder values that can be used.
loadLanguageModule(string $a_module)
Load language module.
special template class to simplify handling of ITX/PEAR