4 include_once
'Services/Form/classes/class.ilSubEnabledFormPropertyGUI.php';
25 parent::__construct(
'');
27 $tpl->addJavaScript(
'Services/Mail/js/ilMailComposeFunctions.js');
36 $this->placeholders[$placeholder][
'placeholder'] = $placeholder;
37 $this->placeholders[$placeholder][
'title'] =
$title;
47 $a_tpl->setCurrentBlock(
"prop_generic");
48 $a_tpl->setVariable(
"PROP_GENERIC",
$html);
49 $a_tpl->parseCurrentBlock();
56 public function render($ajax =
false)
60 $subtpl =
new ilTemplate(
"tpl.mail_manual_placeholders.html",
true,
true,
"Services/Mail");
61 $subtpl->setVariable(
'TXT_USE_PLACEHOLDERS', $lng->txt(
'mail_nacc_use_placeholder'));
62 $subtpl->setVariable(
'TXT_PLACEHOLDERS_ADVISE', sprintf($lng->txt(
'placeholders_advise'),
'<br />'));
63 if(count($this->placeholders) > 0)
65 foreach($this->placeholders as $placeholder)
67 $subtpl->setCurrentBlock(
'man_placeholder');
68 $subtpl->setVariable(
'MANUAL_PLACEHOLDER', $placeholder[
'placeholder']);
69 $subtpl->setVariable(
'TXT_MANUAL_PLACEHOLDER', $placeholder[
'title']);
70 $subtpl->parseCurrentBlock();
80 $subtpl->setVariable(
'URL', $this->url);
81 return $subtpl->get();
102 if($this->
getMulti() && is_array($a_value))
105 $a_value = array_shift($a_value);
107 $this->value = $a_value;
special template class to simplify handling of ITX/PEAR
Create styles array
The data for the language used.