Class Twig_Extension_Sandbox

InheritanceTwig_Extension_Sandbox » Twig_Extension
ImplementsTwig_ExtensionInterface

Property Details

$policy protected property
protected $policy null
$sandboxed protected property
protected $sandboxed null
$sandboxedGlobally protected property
protected $sandboxedGlobally null

Method Details

__construct() public method

public void __construct ( Twig_Sandbox_SecurityPolicyInterface $policy, $sandboxed false )
$policy
$sandboxed
checkMethodAllowed() public method

public void checkMethodAllowed ( $obj, $method )
$obj
$method
checkPropertyAllowed() public method

public void checkPropertyAllowed ( $obj, $method )
$obj
$method
checkSecurity() public method

public void checkSecurity ( $tags, $filters, $functions )
$tags
$filters
$functions
disableSandbox() public method

public void disableSandbox ( )
enableSandbox() public method

public void enableSandbox ( )
ensureToStringAllowed() public method

public void ensureToStringAllowed ( $obj )
$obj
getName() public method

public void getName ( )
getNodeVisitors() public method

public void getNodeVisitors ( )
getSecurityPolicy() public method

public void getSecurityPolicy ( )
getTokenParsers() public method

public void getTokenParsers ( )
isSandboxed() public method

public void isSandboxed ( )
isSandboxedGlobally() public method

public void isSandboxedGlobally ( )
setSecurityPolicy() public method

public void setSecurityPolicy ( Twig_Sandbox_SecurityPolicyInterface $policy )
$policy