Class NLimitedScope


Limited scope for PHP code evaluation and script including.


Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Loaders/LimitedScope.php (line 29)
Public Method Summary
NLimitedScope
Static class - cannot be instantiated.
static mixed
evaluate (string 0, array 1)
Evaluates code in limited scope.
static mixed
load (string 0, array 1)
Includes script in a limited scope.

Method Details

line 36

__construct

public NLimitedScope __construct ()

Static class - cannot be instantiated.

Output
NLimitedScope  

line 49

evaluate

public static mixed evaluate (string 0, array 1)

Evaluates code in limited scope.

Input
string 0 PHP code
array 1 local variables
Output
mixed the return value of the evaluated code

line 67

load

public static mixed load (string 0, array 1)

Includes script in a limited scope.

Input
string 0 file to include
array 1 local variables
Output
mixed the return value of the included file