ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
4 require_once 'Services/Form/classes/class.ilSelectInputGUI.php';
5 require_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 }
This class represents a selection list property in a property form.
__construct($a_title='', $a_postvar='', $url='', array $fields=array())
global $tpl
Definition: ilias.php:8
$errors fields
Definition: imgupload.php:52
static encode($mixed, $suppress_native=false)
Class ilMailTemplateSelectInputGUI.
getFieldId()
Get Post Variable.
special template class to simplify handling of ITX/PEAR
Create styles array
The data for the language used.
$html
Definition: example_001.php:87