Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
StudipFileloader Class Reference

Static Public Member Functions

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

Detailed Description

Member Function Documentation

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

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.

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
array names of newly added variables

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