ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilMailTemplateSelectInputGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 public function __construct(string $a_title, string $a_postvar, protected string $url, protected array $fields)
24 {
25 parent::__construct($a_title, $a_postvar);
26 }
27
28 public function render($a_mode = ''): string
29 {
30 $html = parent::render($a_mode);
31
32 $tpl = new ilTemplate(
33 'tpl.prop_template_select_container.html',
34 true,
35 true,
36 'components/ILIAS/Mail'
37 );
38 $tpl->setVariable('CONTENT', $html);
39 $tpl->setVariable('FIELDS', json_encode($this->fields, JSON_THROW_ON_ERROR));
40 $tpl->setVariable('URL', $this->url);
41 $tpl->setVariable('ID', $this->getFieldId());
42
43 return $tpl->get();
44 }
45}
__construct(string $a_title, string $a_postvar, protected string $url, protected array $fields)
This class represents a selection list property in a property form.
special template class to simplify handling of ITX/PEAR
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$url
Definition: shib_logout.php:68