ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilMailTemplateSelectInputGUI.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
25 {
26  public function __construct(string $a_title, string $a_postvar, protected string $url, protected array $fields)
27  {
28  parent::__construct($a_title, $a_postvar);
29  }
30 
31  public function render($a_mode = ''): string
32  {
33  $html = parent::render($a_mode);
34 
35  $tpl = new ilTemplate(
36  'tpl.prop_template_select_container.html',
37  true,
38  true,
39  'Services/Mail'
40  );
41  $tpl->setVariable('CONTENT', $html);
42  $tpl->setVariable('FIELDS', json_encode($this->fields, JSON_THROW_ON_ERROR));
43  $tpl->setVariable('URL', $this->url);
44  $tpl->setVariable('ID', $this->getFieldId());
45 
46  return $tpl->get();
47  }
48 }
__construct(string $a_title, string $a_postvar, protected string $url, protected array $fields)
This class represents a selection list property in a property form.
__construct(VocabulariesInterface $vocabularies)
Class ilMailTemplateSelectInputGUI.
$url
Definition: ltiregstart.php:35