19 declare(strict_types=1);
    40         if (null === $language) {
    41             $language = $DIC->language();
    42             $language->loadLanguageModule(
'certificate');
    46         if (null === $defaultPlaceholderDescriptionObject) {
    49                 $userDefinedFieldPlaceHolderDescriptionObject
    52         $this->defaultPlaceHolderDescriptionObject = $defaultPlaceholderDescriptionObject;
    54         if (null === $customUserFieldsPlaceholderDescriptionObject) {
    59         $customUserFieldsPlaceholderHtmlDescription = $this->customUserFieldsPlaceholderDescriptionObject->
getPlaceholderDescriptions();
    60         $defaultPlaceholderDescription = $this->defaultPlaceHolderDescriptionObject->getPlaceholderDescriptions();
    62         $this->placeholder = array_merge($defaultPlaceholderDescription, $customUserFieldsPlaceholderHtmlDescription);
    63         $this->placeholder[
'COURSE_TITLE'] = $this->
language->txt(
'crs_title');
    65             $language->txt(
'certificate_ph_date_completed')
    68             $language->txt(
'certificate_ph_datetime_completed')
    74         if (null === $template) {
    75             $template = 
new ilTemplate(
'tpl.default_description.html', 
true, 
true, 
'Services/Certificate');
    78         $template->setVariable(
"PLACEHOLDER_INTRODUCTION", $this->
language->txt(
'certificate_ph_introduction'));
    80         $template->setCurrentBlock(
"items");
    81         foreach ($this->placeholder as 
$id => $caption) {
    82             $template->setVariable(
"ID", 
$id);
    83             $template->setVariable(
"TXT", $caption);
    84             $template->parseCurrentBlock();
    87         return $template->get();
 
getPlaceholderDescriptions()
This method MUST return an array containing an array with the the description as array value...
 
readonly ilDefaultPlaceholderDescription $defaultPlaceHolderDescriptionObject
 
readonly ilLanguage $language
 
readonly ilObjectCustomUserFieldsPlaceholderDescription $customUserFieldsPlaceholderDescriptionObject
 
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 
 
Collection of basic placeholder values that can be used. 
 
__construct(int $objectId, ?ilDefaultPlaceholderDescription $defaultPlaceholderDescriptionObject=null, ?ilLanguage $language=null, ?ilUserDefinedFieldsPlaceholderDescription $userDefinedFieldPlaceHolderDescriptionObject=null, ?ilObjectCustomUserFieldsPlaceholderDescription $customUserFieldsPlaceholderDescriptionObject=null)