46 $language->loadLanguageModule(
'certificate');
50 if (
null === $defaultPlaceholderDescriptionObject) {
53 $this->defaultPlaceHolderDescriptionObject = $defaultPlaceholderDescriptionObject;
60 $customUserFieldsPlaceholderHtmlDescription = $this->customUserFieldsPlaceholderDescriptionObject->getPlaceholderDescriptions();
61 $defaultPlaceholderDescription = $this->defaultPlaceHolderDescriptionObject->getPlaceholderDescriptions();
63 $this->placeholder = array_merge($defaultPlaceholderDescription, $customUserFieldsPlaceholderHtmlDescription);
64 $this->placeholder[
'COURSE_TITLE'] = $this->
language->txt(
'crs_title');
77 if (
null === $template) {
78 $template =
new ilTemplate(
'tpl.default_description.html',
true,
true,
'Services/Certificate');
81 $template->setVariable(
"PLACEHOLDER_INTRODUCTION", $this->
language->txt(
'certificate_ph_introduction'));
83 $template->setCurrentBlock(
"items");
84 foreach ($this->placeholder as $id => $caption) {
85 $template->setVariable(
"ID", $id);
86 $template->setVariable(
"TXT", $caption);
87 $template->parseCurrentBlock();
90 return $template->get();
An exception for terminatinating execution or to throw for unit testing.
$defaultPlaceHolderDescriptionObject
$customUserFieldsPlaceholderDescriptionObject
getPlaceholderDescriptions()
This method MUST return an array containing an array with the the description as array value.
__construct(int $objectId, ilDefaultPlaceholderDescription $defaultPlaceholderDescriptionObject=null, ilLanguage $language=null, ilUserDefinedFieldsPlaceholderDescription $userDefinedFieldPlaceHolderDescriptionObject=null, ilObjectCustomUserFieldsPlaceholderDescription $customUserFieldsPlaceholderDescriptionObject=null)
createPlaceholderHtmlDescription(ilTemplate $template=null)
This methods MUST return an array containing an array with the the description as array value.
Collection of basic placeholder values that can be used.
special template class to simplify handling of ITX/PEAR
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public