38 $language->loadLanguageModule(
'certificate');
42 if (null === $defaultPlaceholderDescriptionObject) {
45 $this->defaultPlaceHolderDescriptionObject = $defaultPlaceholderDescriptionObject;
47 $this->placeholder = $this->defaultPlaceHolderDescriptionObject->getPlaceholderDescriptions();
66 if (null === $template) {
67 $template =
new ilTemplate(
'tpl.default_description.html',
true,
true,
'Services/Certificate');
70 $template->setVariable(
'PLACEHOLDER_INTRODUCTION', $this->
language->txt(
'certificate_ph_introduction'));
72 $template->setCurrentBlock(
'items');
73 foreach ($this->placeholder as $id => $caption) {
74 $template->setVariable(
'ID', $id);
75 $template->setVariable(
'TXT', $caption);
76 $template->parseCurrentBlock();
79 return $template->get();
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
__construct(ilDefaultPlaceholderDescription $defaultPlaceholderDescriptionObject=null, ilLanguage $language=null, ilUserDefinedFieldsPlaceholderDescription $userDefinedFieldPlaceHolderDescriptionObject=null)
getPlaceholderDescriptions()
This method MUST return an array containing an array with the the description as array value...
createPlaceholderHtmlDescription(ilTemplate $template=null)
This methods MUST return an array containing an array with the the description as array value...
$defaultPlaceHolderDescriptionObject
Collection of basic placeholder values that can be used.