4 include_once
'Services/Form/classes/class.ilSubEnabledFormPropertyGUI.php';
60 $this->tpl = $DIC->ui()->mainTemplate();
61 $this->lng = $DIC->language();
63 parent::__construct(
'');
67 $this->tpl->addJavaScript(
'Services/Mail/js/ilMailComposeFunctions.js');
92 $this->rerenderTriggerElementName = $elementId;
93 $this->rerenderUrl =
$url;
134 $this->placeholders[$placeholder][
'placeholder'] = $placeholder;
135 $this->placeholders[$placeholder][
'title'] =
$title;
145 $a_tpl->setCurrentBlock(
"prop_generic");
146 $a_tpl->setVariable(
"PROP_GENERIC",
$html);
147 $a_tpl->parseCurrentBlock();
156 $subtpl =
new ilTemplate(
"tpl.mail_manual_placeholders.html",
true,
true,
"Services/Mail");
157 $subtpl->setVariable(
'TXT_USE_PLACEHOLDERS', $this->lng->txt(
'mail_nacc_use_placeholder'));
159 $subtpl->setVariable(
'TXT_PLACEHOLDERS_ADVISE', $this->
getAdviseText());
162 if (count($this->placeholders) > 0) {
163 foreach ($this->placeholders as $placeholder) {
164 $subtpl->setCurrentBlock(
'man_placeholder');
165 $subtpl->setVariable(
'DEPENDENCY_ELM_ID', $this->dependencyElementId);
166 $subtpl->setVariable(
'MANUAL_PLACEHOLDER', $placeholder[
'placeholder']);
167 $subtpl->setVariable(
'TXT_MANUAL_PLACEHOLDER', $placeholder[
'title']);
168 $subtpl->parseCurrentBlock();
182 return $subtpl->get();
201 if ($this->
getMulti() && is_array($a_value)) {
203 $a_value = array_shift($a_value);
205 $this->value = $a_value;
special template class to simplify handling of ITX/PEAR