19 declare(strict_types=1);
    50         if (null === $language) {
    51             $language = $DIC->language();
    52             $language->loadLanguageModule(
'certificate');
    56         if (null === $defaultPlaceholderDescriptionObject) {
    59                 $userDefinedFieldPlaceHolderDescriptionObject
    62         $this->defaultPlaceHolderDescriptionObject = $defaultPlaceholderDescriptionObject;
    64         if (null === $customUserFieldsPlaceholderDescriptionObject) {
    69         $customUserFieldsPlaceholderHtmlDescription = $this->customUserFieldsPlaceholderDescriptionObject->
getPlaceholderDescriptions();
    70         $defaultPlaceholderDescription = $this->defaultPlaceHolderDescriptionObject->getPlaceholderDescriptions();
    72         $this->placeholder = array_merge($defaultPlaceholderDescription, $customUserFieldsPlaceholderHtmlDescription);
    73         $this->placeholder[
'COURSE_TITLE'] = $this->
language->txt(
'crs_title');
    75             $language->txt(
'certificate_ph_date_completed')
    78             $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();
 
__construct(int $objectId, ?ilDefaultPlaceholderDescription $defaultPlaceholderDescriptionObject=null, ?ilLanguage $language=null, ?ilUserDefinedFieldsPlaceholderDescription $userDefinedFieldPlaceHolderDescriptionObject=null, ?ilObjectCustomUserFieldsPlaceholderDescription $customUserFieldsPlaceholderDescriptionObject=null)
 
readonly ilObjectCustomUserFieldsPlaceholderDescription $customUserFieldsPlaceholderDescriptionObject
 
readonly ilDefaultPlaceholderDescription $defaultPlaceHolderDescriptionObject
 
getPlaceholderDescriptions()
This method MUST return an array containing an array with the description as array value...
 
readonly ilLanguage $language
 
createPlaceholderHtmlDescription(?ilTemplate $template=null)
 
getPlaceholderDescriptions()
This method MUST return an array containing an array with the the description as array value...
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
language()
 description: > Example for rendring a language glyph.