19 declare(strict_types=1);
    34         if (null === $language) {
    35             $language = $DIC->language();
    36             $language->loadLanguageModule(
'certificate');
    40         if (null === $defaultPlaceholderDescriptionObject) {
    43                 $userDefinedFieldPlaceHolderDescriptionObject
    46         $this->defaultPlaceHolderDescriptionObject = $defaultPlaceholderDescriptionObject;
    48         $this->placeholder = $this->defaultPlaceHolderDescriptionObject->getPlaceholderDescriptions();
    49         $this->placeholder[
'PRG_TITLE'] = $this->
language->txt(
'sp_certificate_title');
    50         $this->placeholder[
'PRG_DESCRIPTION'] = $this->
language->txt(
'sp_certificate_description');
    51         $this->placeholder[
'PRG_TYPE'] = $this->
language->txt(
'sp_certificate_type');
    52         $this->placeholder[
'PRG_POINTS'] = $this->
language->txt(
'sp_certificate_points');
    53         $this->placeholder[
'PRG_COMPLETION_DATE'] = $this->
language->txt(
'sp_certificate_completion_date');
    54         $this->placeholder[
'PRG_EXPIRES_AT'] = $this->
language->txt(
'sp_certificate_progress_expires_at');
    63         if (null === $template) {
    64             $template = 
new ilTemplate(
'tpl.default_description.html', 
true, 
true, 
'Services/Certificate');
    67         $template->setVariable(
"PLACEHOLDER_INTRODUCTION", $this->
language->txt(
'certificate_ph_introduction'));
    69         $template->setCurrentBlock(
"items");
    70         foreach ($this->placeholder as 
$id => $caption) {
    71             $template->setVariable(
"ID", 
$id);
    72             $template->setVariable(
"TXT", $caption);
    73             $template->parseCurrentBlock();
    76         return $template->get();
 
readonly ilDefaultPlaceholderDescription $defaultPlaceHolderDescriptionObject
 
readonly ilLanguage $language
 
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 
 
getPlaceholderDescriptions()
This method MUST return an array containing an array with the the description as array value...
 
Collection of basic placeholder values that can be used. 
 
__construct(?ilDefaultPlaceholderDescription $defaultPlaceholderDescriptionObject=null, ?ilLanguage $language=null, ?ilUserDefinedFieldsPlaceholderDescription $userDefinedFieldPlaceHolderDescriptionObject=null)