ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilMailTemplatePlaceholderResolver.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 public function __construct(protected Mustache_Engine $mustache_engine)
24 {
25 }
26
30 public function resolve(
32 string $message,
33 ?ilObjUser $user = null,
34 array $context_parameters = []
35 ): string {
36 return $this->mustache_engine->render(
39 [$context],
40 $context_parameters,
41 $this->mustache_engine,
42 $user
43 )
44 );
45 }
46}
This class forms an interface between the existing ILIAS mail contexts and the requirements of Mustac...
__construct(protected Mustache_Engine $mustache_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...
$context
Definition: webdav.php:31
$message
Definition: xapiexit.php:31