ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilMailTemplateSelectInputGUI.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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.
$url
Definition: shib_logout.php:68
__construct(Container $dic, ilPlugin $plugin)