• PHP reference
  • Sandbox

Sandbox

class Sandbox\Sandbox

Class Sandbox.

The main class for running Scholica modules

Methods

__construct($module_path, array $config = [])

Sandbox constructor.

Parameters

  • $module_path
  • array $config

import($q, $s)

Import a new variable into the sandbox.

Parameters

  • $q
  • $s

mixed run($file, boolean $return_output = false, boolean $is_cron = false, array $cb_vars = null)

Run a file in the sandbox.

Parameters

  • $file
  • boolean $return_output
  • boolean $is_cron
  • array $cb_vars

Return Value

  • mixed