19declare(strict_types=1);
50 if (
null === $defaultPlaceholderDescriptionObject) {
53 $this->defaultPlaceHolderDescriptionObject = $defaultPlaceholderDescriptionObject;
55 $this->placeholder = $this->defaultPlaceHolderDescriptionObject->getPlaceholderDescriptions();
57 $this->
language->txt(
'lti_cert_ph_object_title')
60 $this->
language->txt(
'lti_cert_ph_object_description')
63 $this->
language->txt(
'lti_cert_ph_mastery_score')
66 $this->
language->txt(
'lti_cert_ph_reached_score')
86 if (
null === $template) {
87 $template =
new ilTemplate(
'tpl.default_description.html',
true,
true,
'components/ILIAS/Certificate');
90 $template->setVariable(
'PLACEHOLDER_INTRODUCTION', $this->
language->txt(
'certificate_ph_introduction'));
92 $template->setCurrentBlock(
'items');
93 foreach ($this->placeholder as
$id => $caption) {
94 $template->setVariable(
'ID',
$id);
95 $template->setVariable(
'TXT', $caption);
96 $template->parseCurrentBlock();
99 return $template->get();
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Collection of basic placeholder values that can be used.
__construct(?ilDefaultPlaceholderDescription $defaultPlaceholderDescriptionObject=null, ?ilLanguage $language=null, ?ilUserDefinedFieldsPlaceholderDescription $userDefinedFieldPlaceHolderDescriptionObject=null)
createPlaceholderHtmlDescription(ilTemplate $template=null)
getPlaceholderDescriptions()
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