ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilMailFormPlaceholdersPropertyGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
12 include_once 'Services/Form/classes/class.ilFormPropertyGUI.php';
13 
15 {
16 
17  public function __construct()
18  {
19  global $lng;
21  }
22 
23  public function insert($a_tpl)
24  {
25  global $lng;
26  $subtpl = new ilTemplate("tpl.mail_new_placeholders.html", false, false, "Services/Mail");
27  $subtpl->setVariable('TXT_USE_PLACEHOLDERS', $lng->txt('mail_nacc_use_placeholder'));
28  $subtpl->setVariable('TXT_PLACEHOLDERS_ADVISE', sprintf($lng->txt('placeholders_advise'), '<br />'));
29  $subtpl->setVariable('TXT_MAIL_SALUTATION', $lng->txt('mail_nacc_salutation'));
30  $subtpl->setVariable('TXT_FIRST_NAME', $lng->txt('firstname'));
31  $subtpl->setVariable('TXT_LAST_NAME', $lng->txt('lastname'));
32  $subtpl->setVariable('TXT_LOGIN', $lng->txt('mail_nacc_login'));
33  $subtpl->setVariable('TXT_ILIAS_URL', $lng->txt('mail_nacc_ilias_url'));
34  $subtpl->setVariable('TXT_CLIENT_NAME', $lng->txt('mail_nacc_client_name'));
35 
36  $a_tpl->setCurrentBlock("prop_generic");
37  $a_tpl->setVariable("PROP_GENERIC", $subtpl->get());
38  $a_tpl->parseCurrentBlock();
39  }
40 }
41 
42 ?>