19declare(strict_types=1);
43 if (
null === $defaultPlaceholderDescriptionObject) {
46 $userDefinedFieldPlaceHolderDescriptionObject
49 $this->defaultPlaceHolderDescriptionObject = $defaultPlaceholderDescriptionObject;
51 $this->placeholder = $this->defaultPlaceHolderDescriptionObject->getPlaceholderDescriptions();
78 if (
null === $template) {
79 $template =
new ilTemplate(
'tpl.default_description.html',
true,
true,
'Services/Certificate');
82 $template->setVariable(
'PLACEHOLDER_INTRODUCTION', $this->
language->txt(
'certificate_ph_introduction'));
84 $template->setCurrentBlock(
'items');
85 foreach ($this->placeholder as
$id => $caption) {
86 $template->setVariable(
'ID',
$id);
87 $template->setVariable(
'TXT', $caption);
88 $template->parseCurrentBlock();
91 return $template->get();
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Collection of basic placeholder values that can be used.
createPlaceholderHtmlDescription(?ilTemplate $template=null)
This methods MUST return an array containing an array with the the description as array value.
__construct(?ilDefaultPlaceholderDescription $defaultPlaceholderDescriptionObject=null, ?ilLanguage $language=null, ?ilUserDefinedFieldsPlaceholderDescription $userDefinedFieldPlaceHolderDescriptionObject=null)
ilDefaultPlaceholderDescription $defaultPlaceHolderDescriptionObject
getPlaceholderDescriptions()
This method MUST return an array containing an array with the the description as array value.
loadLanguageModule(string $a_module)
Load language module.
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...
special template class to simplify handling of ITX/PEAR