19declare(strict_types=1);
53 if (
null === $defaultPlaceholderDescriptionObject) {
56 $this->defaultPlaceHolderDescriptionObject = $defaultPlaceholderDescriptionObject;
58 $this->placeholder = $this->defaultPlaceHolderDescriptionObject->getPlaceholderDescriptions();
60 $this->
language->txt(
'lti_cert_ph_object_title')
63 $this->
language->txt(
'lti_cert_ph_object_description')
66 $this->
language->txt(
'lti_cert_ph_mastery_score')
69 $this->
language->txt(
'lti_cert_ph_reached_score')
89 if (
null === $template) {
90 $template =
new ilTemplate(
'tpl.default_description.html',
true,
true,
'components/ILIAS/Certificate');
93 $template->setVariable(
'PLACEHOLDER_INTRODUCTION', $this->
language->txt(
'certificate_ph_introduction'));
95 $template->setCurrentBlock(
'items');
96 foreach ($this->placeholder as
$id => $caption) {
97 $template->setVariable(
'ID',
$id);
98 $template->setVariable(
'TXT', $caption);
99 $template->parseCurrentBlock();
102 return $template->get();
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Collection of basic placeholder values that can be used.
getPlaceholderDescriptions()
__construct(?ilDefaultPlaceholderDescription $defaultPlaceholderDescriptionObject=null, ?ilLanguage $language=null, ?ilUserDefinedFieldsPlaceholderDescription $userDefinedFieldPlaceHolderDescriptionObject=null, ?Profile $profile=null)
createPlaceholderHtmlDescription(?ilTemplate $template=null)
ilDefaultPlaceholderDescription $defaultPlaceHolderDescriptionObject
loadLanguageModule(string $a_module)
Load language module.
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...
special template class to simplify handling of ITX/PEAR