ILIAS
trunk Revision v11.0_alpha-1861-g09f3d197f78
|
This class forms an interface between the existing ILIAS mail contexts and the requirements of Mustache. More...
Public Member Functions | |
withContext (ilMailTemplateContext $context) | |
__isset (string $name) | |
__get (string $name) | |
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::__get | ( | string | $name | ) |
ilMailTemplateContextAdapter::__isset | ( | string | $name | ) |
ilMailTemplateContextAdapter::withContext | ( | ilMailTemplateContext | $context | ) |