Class LimitedScope (namespace Nette\Loaders)


Limited scope for PHP code evaluation and script including.


Copyright: Copyright (c) 2004, 2010 David Grudl
Located: in /Loaders/LimitedScope.php (line 21)
Public Method Summary
LimitedScope
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 28

__construct

public LimitedScope __construct ()

Static class - cannot be instantiated.

Output
LimitedScope  

line 41

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 59

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