19 declare(strict_types=1);
    34         if (null === $userDefinedFieldPlaceHolderDescriptionObject) {
    37         $userDefinedPlaceholderHtmlDescription = $userDefinedFieldPlaceHolderDescriptionObject->getPlaceholderDescriptions();
    42         $this->placeholder = [
    43             'USER_LOGIN' => $language->
txt(
'certificate_ph_login'),
    44             'USER_FULLNAME' => $language->
txt(
'certificate_ph_fullname'),
    45             'USER_FIRSTNAME' => $language->
txt(
'certificate_ph_firstname'),
    46             'USER_LASTNAME' => $language->
txt(
'certificate_ph_lastname'),
    47             'USER_TITLE' => $language->
txt(
'certificate_ph_title'),
    48             'USER_SALUTATION' => $language->
txt(
'certificate_ph_salutation'),
    49             'USER_BIRTHDAY' => $language->
txt(
'certificate_ph_birthday'),
    50             'USER_INSTITUTION' => $language->
txt(
'certificate_ph_institution'),
    51             'USER_DEPARTMENT' => $language->
txt(
'certificate_ph_department'),
    52             'USER_STREET' => $language->
txt(
'certificate_ph_street'),
    53             'USER_CITY' => $language->
txt(
'certificate_ph_city'),
    54             'USER_ZIPCODE' => $language->
txt(
'certificate_ph_zipcode'),
    55             'USER_COUNTRY' => $language->
txt(
'certificate_ph_country'),
    56             'USER_MATRICULATION' => $language->
txt(
'certificate_ph_matriculation'),
    57             'DATE' => $language->
txt(
"certificate_ph_date"),
    58             'DATETIME' => $language->
txt(
"certificate_ph_datetime"),
    61         $this->placeholder = array_merge($this->placeholder, $userDefinedPlaceholderHtmlDescription);
    71         if (null === $template) {
    72             $template = 
new ilTemplate(
'tpl.default_description.html', 
true, 
true, 
'Services/Certificate');
    75         $template->setVariable(
'PLACEHOLDER_INTRODUCTION', $this->
language->txt(
'certificate_ph_introduction'));
    77         $template->setCurrentBlock(
'items');
    78         foreach ($this->placeholder as 
$id => $caption) {
    79             $template->setVariable(
'ID', 
$id);
    80             $template->setVariable(
'TXT', $caption);
    81             $template->parseCurrentBlock();
    84         return $template->get();
 
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...
 
createPlaceholderHtmlDescription(?ilTemplate $template=null)
This method is different then the 'getPlaceholderValues' method, this method is used to create a plac...
 
__construct(ilLanguage $language, ?ilUserDefinedFieldsPlaceholderDescription $userDefinedFieldPlaceHolderDescriptionObject=null)
 
loadLanguageModule(string $a_module)
Load language module. 
 
getPlaceholderDescriptions()
This method MUST return an array containing an array with the the description as array value...
 
readonly ilLanguage $language
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
Collection of basic placeholder values that can be used.