19 declare(strict_types=1);
    46         if (null === $language) {
    47             $language = $DIC->language();
    48             $language->loadLanguageModule(
'certificate');
    52         if (null === $defaultPlaceholderDescriptionObject) {
    55                 $userDefinedFieldPlaceHolderDescriptionObject
    58         $this->placeholder = $defaultPlaceholderDescriptionObject->getPlaceholderDescriptions();
    61             $language->txt(
'certificate_var_result_passed')
    64             $language->txt(
'certificate_var_result_mark_short')
    67             $language->txt(
'certificate_ph_exercisetitle')
    70             $language->txt(
'certificate_ph_datetime_completed')
    73             $language->txt(
'certificate_ph_datetime_completed')
    84         if (null === $template) {
    85             $template = 
new ilTemplate(
'tpl.default_description.html', 
true, 
true, 
'components/ILIAS/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();
 
getPlaceholderDescriptions()
This method MUST return an array containing an array with the description as array value...
 
__construct(?ilDefaultPlaceholderDescription $defaultPlaceholderDescriptionObject=null, ?ilLanguage $language=null, ?ilUserDefinedFieldsPlaceholderDescription $userDefinedFieldPlaceHolderDescriptionObject=null)
 
readonly ilDefaultPlaceholderDescription $defaultPlaceHolderDescriptionObject
 
createPlaceholderHtmlDescription(?ilTemplate $template=null)
This methods MUST return an array containing an array with the the description as array value...
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
readonly ilLanguage $language
 
language()
 description: > Example for rendring a language glyph.