| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
This class forms an interface between the existing ILIAS mail contexts and the requirements of Mustache. More...
 Collaboration diagram for ilMailTemplateContextAdapter:Public Member Functions | |
| __construct (array $contexts, array $context_parameters, private readonly Mustache_Engine $mustache_engine, ilObjUser $recipient=null) | |
| withContext (ilMailTemplateContext $context) | |
| __isset (string $name) | |
| __get (string $name) | |
Protected Attributes | |
| array | $contexts = [] | 
| array | $context_parameter = [] | 
| ilObjUser | $recipient = null | 
This class forms an interface between the existing ILIAS mail contexts and the requirements of Mustache.
In the old system, it was possible to gradually replace individual placeholders via the contexts. This is now done by Mustache and requires a single source. If a placeholder does not exist in this source, then it will be replaced with NULL. Mustache takes two steps to find the placeholder. On the one hand the check whether it would be theoretically possible and the actual query for the value if the check is successful. This is done in this class using the two magic methods. With the introduction of this interface, the ILIAS mail contexts do not have to be changed for Mustache.
Definition at line 30 of file class.ilMailTemplateContextAdapter.php.
| ilMailTemplateContextAdapter::__construct | ( | array | $contexts, | 
| array | $context_parameters, | ||
| private readonly Mustache_Engine | $mustache_engine, | ||
| ilObjUser | $recipient = null  | 
        ||
| ) | 
Definition at line 37 of file class.ilMailTemplateContextAdapter.php.
References $contexts, and $recipient.
| ilMailTemplateContextAdapter::__get | ( | string | $name | ) | 
| ilMailTemplateContextAdapter::__isset | ( | string | $name | ) | 
| ilMailTemplateContextAdapter::withContext | ( | ilMailTemplateContext | $context | ) | 
      
  | 
  protected | 
Definition at line 34 of file class.ilMailTemplateContextAdapter.php.
      
  | 
  protected | 
Definition at line 33 of file class.ilMailTemplateContextAdapter.php.
Referenced by __construct().
      
  | 
  protected | 
Definition at line 35 of file class.ilMailTemplateContextAdapter.php.
Referenced by __construct().