ILIAS  release_8 Revision v8.24
class.ilMailTemplateSelectInputGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25{
26 protected array $fields = [];
27 protected string $url;
28
29 public function __construct(string $a_title, string $a_postvar, string $url, array $fields)
30 {
31 parent::__construct($a_title, $a_postvar);
32
33 $this->url = $url;
34 $this->fields = $fields;
35 }
36
37 public function render($a_mode = ''): string
38 {
39 $html = parent::render($a_mode);
40
41 $tpl = new ilTemplate(
42 'tpl.prop_template_select_container.html',
43 true,
44 true,
45 'Services/Mail'
46 );
47 $tpl->setVariable('CONTENT', $html);
48 $tpl->setVariable('FIELDS', json_encode($this->fields, JSON_THROW_ON_ERROR));
49 $tpl->setVariable('URL', $this->url);
50 $tpl->setVariable('ID', $this->getFieldId());
51
52 return $tpl->get();
53 }
54}
Class ilMailTemplateSelectInputGUI.
__construct(string $a_title, string $a_postvar, string $url, array $fields)
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:67
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc