Class LimitedScope (namespace Nette\Loaders)


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 30)
Public Method Summary
LimitedScope
Static class - cannot be instantiated.
static mixed
evaluate (string $_code, [$_vars = NULL])
Evaluates code in limited scope.
static mixed
load (string $_file, [$_vars = NULL])
Includes script in a limited scope.

Method Details

line 36

__construct

public LimitedScope __construct ()

Static class - cannot be instantiated.

Output
LimitedScope  

line 49

evaluate

public static mixed evaluate (string $_code, [$_vars = NULL])

Evaluates code in limited scope.

Input
string $_code PHP code
$_vars local variables
Output
mixed the return value of the evaluated code

line 65

load

public static mixed load (string $_file, [$_vars = NULL])

Includes script in a limited scope.

Input
string $_file file to include
$_vars local variables
Output
mixed the return value of the included file