ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
40 public function render($a_mode = '')
41 {
42 $html = parent::render($a_mode);
43
44 $tpl = new ilTemplate('tpl.prop_template_select_container.html', true, true, 'Services/Mail');
45 $tpl->setVariable('CONTENT', $html);
46 $tpl->setVariable('FIELDS', ilJsonUtil::encode($this->fields));
47 $tpl->setVariable('URL', $this->url);
48 $tpl->setVariable('ID', $this->getFieldId());
49
50 return $tpl->get();
51 }
52}
global $tpl
Definition: ilias.php:8
getFieldId()
Get Post Variable.
static encode($mixed, $suppress_native=false)
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
$html
Definition: example_001.php:87
$errors fields
Definition: imgupload.php:48