Class Twig_Sandbox_SecurityPolicy

InheritanceTwig_Sandbox_SecurityPolicy
ImplementsTwig_Sandbox_SecurityPolicyInterface

Represents a security policy which need to be enforced when sandbox mode is enabled.

Property Details

$allowedFilters protected property
protected $allowedFilters null
$allowedFunctions protected property
protected $allowedFunctions null
$allowedMethods protected property
protected $allowedMethods null
$allowedProperties protected property
protected $allowedProperties null
$allowedTags protected property
protected $allowedTags null

Method Details

__construct() public method

public void __construct ( array $allowedTags = [], array $allowedFilters = [], array $allowedMethods = [], array $allowedProperties = [], array $allowedFunctions = [] )
$allowedTags
$allowedFilters
$allowedMethods
$allowedProperties
$allowedFunctions
checkMethodAllowed() public method

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

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

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

public void setAllowedFilters ( array $filters )
$filters
setAllowedFunctions() public method

public void setAllowedFunctions ( array $functions )
$functions
setAllowedMethods() public method

public void setAllowedMethods ( array $methods )
$methods
setAllowedProperties() public method

public void setAllowedProperties ( array $properties )
$properties
setAllowedTags() public method

public void setAllowedTags ( array $tags )
$tags