ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
12include_once 'Services/Form/classes/class.ilFormPropertyGUI.php';
13
15{
19 protected $lng;
20
24 public function __construct()
25 {
26 global $DIC;
27
28 $this->lng = $DIC->language();
29
30 parent::__construct('');
31 }
32
36 public function insert($a_tpl)
37 {
38 $subtpl = new ilTemplate("tpl.mail_new_placeholders.html", false, false, "Services/Mail");
39 $subtpl->setVariable('TXT_USE_PLACEHOLDERS', $this->lng->txt('mail_nacc_use_placeholder'));
40 $subtpl->setVariable('TXT_PLACEHOLDERS_ADVISE', sprintf($this->lng->txt('placeholders_advise'), '<br />'));
41 $subtpl->setVariable('TXT_MAIL_SALUTATION', $this->lng->txt('mail_nacc_salutation'));
42 $subtpl->setVariable('TXT_FIRST_NAME', $this->lng->txt('firstname'));
43 $subtpl->setVariable('TXT_LAST_NAME', $this->lng->txt('lastname'));
44 $subtpl->setVariable('TXT_LOGIN', $this->lng->txt('mail_nacc_login'));
45 $subtpl->setVariable('TXT_ILIAS_URL', $this->lng->txt('mail_nacc_ilias_url'));
46 $subtpl->setVariable('TXT_CLIENT_NAME', $this->lng->txt('mail_nacc_client_name'));
47
48 $a_tpl->setCurrentBlock("prop_generic");
49 $a_tpl->setVariable("PROP_GENERIC", $subtpl->get());
50 $a_tpl->parseCurrentBlock();
51 }
52}
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
This class represents a property in a property form.
__construct()
ilMailFormPlaceholdersPropertyGUI constructor.
special template class to simplify handling of ITX/PEAR
global $DIC
Definition: saml.php:7