19declare(strict_types=1);
46 $profile ??=
$DIC[
'user']->getProfile();
48 if (
null === $defaultPlaceholderDescriptionObject) {
49 $defaultPlaceholderDescriptionObject = new \ilDefaultPlaceholderDescription(
52 $userDefinedFieldPlaceHolderDescriptionObject
55 $this->placeholder = $defaultPlaceholderDescriptionObject->getPlaceholderDescriptions();
58 $this->
language->txt(
'certificate_var_result_passed')
61 $this->
language->txt(
'certificate_var_result_points')
64 $this->
language->txt(
'certificate_var_result_percent')
67 $this->
language->txt(
'certificate_var_max_points')
70 $this->
language->txt(
'certificate_var_result_mark_short')
73 $this->
language->txt(
'certificate_var_result_mark_long')
76 $this->
language->txt(
'certificate_ph_testtitle')
92 if (
null === $template) {
93 $template = new \ilTemplate(
'tpl.default_description.html',
true,
true,
'components/ILIAS/Certificate');
96 $template->setVariable(
'PLACEHOLDER_INTRODUCTION', $this->
language->txt(
'certificate_ph_introduction'));
98 $template->setCurrentBlock(
'items');
99 foreach ($this->placeholder as
$id => $caption) {
100 $template->setVariable(
'ID',
$id);
101 $template->setVariable(
'TXT', $caption);
102 $template->parseCurrentBlock();
105 return $template->get();
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
createPlaceholderHtmlDescription(?\ilTemplate $template=null)
This methods MUST return an array containing an array with the the description as array value.
readonly ilLanguage $language
getPlaceholderDescriptions()
This method MUST return an array containing an array with the description as array value.
__construct(?\ilDefaultPlaceholderDescription $defaultPlaceholderDescriptionObject=null, ?\ilLanguage $language=null, ?Profile $profile=null, ?\ilUserDefinedFieldsPlaceholderDescription $userDefinedFieldPlaceHolderDescriptionObject=null)
Collection of basic placeholder values that can be used.
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