\PHPSandbox

Classes

Error Error class for PHP Sandboxes.
PHPSandbox PHPSandbox class for PHP Sandboxes.
SandboxedString Sandboxed string class for PHP Sandboxes.
SandboxWhitelistVisitor SandboxWhitelister class for PHP Sandboxes.
ValidatorVisitor Validator class for PHP Sandboxes.
WhitelistVisitor Whitelister class for PHP Sandboxes.

Functions

wrap()

wrap(mixed  $value, \PHPSandbox\PHPSandbox  $sandbox) : mixed|\PHPSandbox\SandboxedString

Wrap output value in SandboxString

Parameters

mixed $value

Value to wrap

\PHPSandbox\PHPSandbox $sandbox

Sandbox instance of calling code

Returns

mixed|\PHPSandbox\SandboxedString

Returns the wrapped value

wrapByRef()

wrapByRef(mixed  $value, \PHPSandbox\PHPSandbox  $sandbox) : mixed|\PHPSandbox\SandboxedString

Wrap output value in SandboxString by reference

Parameters

mixed $value

Value to wrap

\PHPSandbox\PHPSandbox $sandbox

Sandbox instance of calling code

Returns

mixed|\PHPSandbox\SandboxedString

Returns the wrapped value