19 declare(strict_types=1);
    34         if (null === $userDefinedFieldPlaceHolderDescriptionObject) {
    37         $userDefinedPlaceholderHtmlDescription = $userDefinedFieldPlaceHolderDescriptionObject->getPlaceholderDescriptions();
    42         $this->placeholder = [
    43             'CERTIFICATE_ID' => $language->
txt(
'certificate_ph_cert_id'),
    44             'USER_LOGIN' => $language->
txt(
'certificate_ph_login'),
    45             'USER_FULLNAME' => $language->
txt(
'certificate_ph_fullname'),
    46             'USER_FIRSTNAME' => $language->
txt(
'certificate_ph_firstname'),
    47             'USER_LASTNAME' => $language->
txt(
'certificate_ph_lastname'),
    48             'USER_TITLE' => $language->
txt(
'certificate_ph_title'),
    49             'USER_SALUTATION' => $language->
txt(
'certificate_ph_salutation'),
    50             'USER_BIRTHDAY' => $language->
txt(
'certificate_ph_birthday'),
    51             'USER_INSTITUTION' => $language->
txt(
'certificate_ph_institution'),
    52             'USER_DEPARTMENT' => $language->
txt(
'certificate_ph_department'),
    53             'USER_STREET' => $language->
txt(
'certificate_ph_street'),
    54             'USER_CITY' => $language->
txt(
'certificate_ph_city'),
    55             'USER_ZIPCODE' => $language->
txt(
'certificate_ph_zipcode'),
    56             'USER_COUNTRY' => $language->
txt(
'certificate_ph_country'),
    57             'USER_MATRICULATION' => $language->
txt(
'certificate_ph_matriculation'),
    58             'DATE' => $language->
txt(
"certificate_ph_date"),
    59             'DATETIME' => $language->
txt(
"certificate_ph_datetime"),
    62         $this->placeholder = array_merge($this->placeholder, $userDefinedPlaceholderHtmlDescription);
    72         if (null === $template) {
    73             $template = 
new ilTemplate(
'tpl.default_description.html', 
true, 
true, 
'components/ILIAS/Certificate');
    76         $template->setVariable(
'PLACEHOLDER_INTRODUCTION', $this->
language->txt(
'certificate_ph_introduction'));
    78         $template->setCurrentBlock(
'items');
    79         foreach ($this->placeholder as 
$id => $caption) {
    80             $template->setVariable(
'ID', 
$id);
    81             $template->setVariable(
'TXT', $caption);
    82             $template->parseCurrentBlock();
    85         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 
 
language()
 description: > Example for rendring a language glyph.