|
static | load ($_filename, &$_container, $_injected=[], $_allow_overwrite=false) |
|
◆ load()
static load |
( |
|
$_filename, |
|
|
& |
$_container, |
|
|
|
$_injected = [] , |
|
|
|
$_allow_overwrite = false |
|
) |
| |
|
static |
Loads a PHP sourcefile and transfers all therein defined variables into a specified container. Optionally you may inject more bindings into the scope, if the sourcefile requires them.
- Parameters
-
string | $_filename | which file to load |
array | $_container | where to put the new variables into |
array | $_injected | optional bindings, to inject into the scope before loading |
bool | $_allow_overwrite | allow overwriting of injected |
- Returns
- array names of newly added variables
The documentation for this class was generated from the following file: