ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilMailTemplateSelectInputGUI.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
__construct(string $a_title, string $a_postvar, string $url, array $fields)
$errors fields
Definition: imgupload.php:67
Class ilMailTemplateSelectInputGUI.
__construct(Container $dic, ilPlugin $plugin)
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41