![]() |
Grima
2018-08
Whispering into Alma's ear
|
Helper class for Splat that runs the template PHP. More...
Public Member Functions | |
| __construct ( $file, array $scope) | |
Record the $file and $scope More... | |
| splat () | |
extract the scope and include the file More... | |
Protected Attributes | |
| $file | |
| $scope | |
Helper class for Splat that runs the template PHP.
In order to keep the variable scope for the template clean, we have a very simple class that keeps track of what file to execute in what scope. It sets up the scope, and includes the file.
Definition at line 156 of file grima-splats.php.
| zemowsplat\SplatExecutionContext::__construct | ( | $file, | |
| array | $scope | ||
| ) |
Record the $file and $scope
| string | $file | - The PHP file to execute via include |
| array | $scope | - The associative array to use as the scope via extract |
Definition at line 164 of file grima-splats.php.
| zemowsplat\SplatExecutionContext::splat | ( | ) |
|
protected |
Definition at line 157 of file grima-splats.php.
|
protected |
Definition at line 158 of file grima-splats.php.
1.8.14