ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilMailTemplatePlaceholderResolver.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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(
37  $message,
39  [$context],
40  $context_parameters,
41  $this->mustache_engine,
42  $user
43  )
44  );
45  }
46 }
$context
Definition: webdav.php:31
__construct(protected Mustache_Engine $mustache_engine)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This class forms an interface between the existing ILIAS mail contexts and the requirements of Mustac...
$message
Definition: xapiexit.php:31
resolve(ilMailTemplateContext $context, string $message, ?ilObjUser $user=null, array $context_parameters=[])