ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilMailTemplateSelectInputGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Services/Form/classes/class.ilSelectInputGUI.php';
5require_once 'Services/JSON/classes/class.ilJsonUtil.php';
6
11{
15 protected $fields = array();
16
20 protected $url;
21
28 public function __construct($a_title = '', $a_postvar = '', $url = '', array $fields = array())
29 {
30 parent::__construct($a_title, $a_postvar);
31
32 $this->url = $url;
33 $this->fields = $fields;
34 }
35
39 public function render($a_mode = '')
40 {
41 $html = parent::render($a_mode);
42
43 $tpl = new ilTemplate('tpl.prop_template_select_container.html', true, true, 'Services/Mail');
44 $tpl->setVariable('CONTENT', $html);
45 $tpl->setVariable('FIELDS', json_encode($this->fields));
46 $tpl->setVariable('URL', $this->url);
47 $tpl->setVariable('ID', $this->getFieldId());
48
49 return $tpl->get();
50 }
51}
An exception for terminatinating execution or to throw for unit testing.
getFieldId()
Get Post Variable.
Class ilMailTemplateSelectInputGUI.
__construct($a_title='', $a_postvar='', $url='', array $fields=array())
This class represents a selection list property in a property form.
special template class to simplify handling of ITX/PEAR
$errors fields
Definition: imgupload.php:51
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc