Stud.IP  6.0
StudipFileloader Class Reference

Static Public Member Functions

static load ($_filename, &$_container, $_injected=[], $_allow_overwrite=false)
 

Detailed Description

Member Function Documentation

◆ 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$_filenamewhich file to load
array$_containerwhere to put the new variables into
array$_injectedoptional bindings, to inject into the scope before loading
bool$_allow_overwriteallow overwriting of injected
Returns
array names of newly added variables

The documentation for this class was generated from the following file: