ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
class.ilMailTemplatePlaceholderResolver.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
23
25{
26 public function __construct(protected TemplateEngineInterface $template_engine)
27 {
28 }
29
33 public function resolve(
34 ilMailTemplateContext $context,
35 string $message,
36 ?ilObjUser $user = null,
37 array $context_parameters = []
38 ): string {
39 return $this->template_engine->render(
40 $message,
42 [$context],
43 $context_parameters,
44 $this->template_engine,
45 $user
46 )
47 );
48 }
49}
This class forms an interface between the existing ILIAS mail contexts and the requirements of the te...
__construct(protected TemplateEngineInterface $template_engine)
resolve(ilMailTemplateContext $context, string $message, ?ilObjUser $user=null, array $context_parameters=[])
User class.
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface for template engine functionality used in Mail and related components.