PEEL Shopping
Open source ecommerce : PEEL Shopping
Public Member Functions | Protected Attributes
Twig_Sandbox_SecurityPolicy Class Reference

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

Inheritance diagram for Twig_Sandbox_SecurityPolicy:
Twig_Sandbox_SecurityPolicyInterface

Public Member Functions

 __construct (array $allowedTags=array(), array $allowedFilters=array(), array $allowedMethods=array(), array $allowedProperties=array(), array $allowedFunctions=array())
 
 setAllowedTags (array $tags)
 
 setAllowedFilters (array $filters)
 
 setAllowedMethods (array $methods)
 
 setAllowedProperties (array $properties)
 
 setAllowedFunctions (array $functions)
 
 checkSecurity ($tags, $filters, $functions)
 
 checkMethodAllowed ($obj, $method)
 
 checkPropertyAllowed ($obj, $property)
 

Protected Attributes

 $allowedTags
 
 $allowedFilters
 
 $allowedMethods
 
 $allowedProperties
 
 $allowedFunctions
 

Detailed Description

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

Author
Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com

Definition at line 17 of file SecurityPolicy.php.

Constructor & Destructor Documentation

__construct ( array  $allowedTags = array(),
array  $allowedFilters = array(),
array  $allowedMethods = array(),
array  $allowedProperties = array(),
array  $allowedFunctions = array() 
)

Definition at line 25 of file SecurityPolicy.php.

Member Function Documentation

checkMethodAllowed (   $obj,
  $method 
)

Implements Twig_Sandbox_SecurityPolicyInterface.

Definition at line 83 of file SecurityPolicy.php.

checkPropertyAllowed (   $obj,
  $property 
)

Implements Twig_Sandbox_SecurityPolicyInterface.

Definition at line 104 of file SecurityPolicy.php.

checkSecurity (   $tags,
  $filters,
  $functions 
)

Implements Twig_Sandbox_SecurityPolicyInterface.

Definition at line 62 of file SecurityPolicy.php.

setAllowedFilters ( array  $filters)

Definition at line 39 of file SecurityPolicy.php.

setAllowedFunctions ( array  $functions)

Definition at line 57 of file SecurityPolicy.php.

setAllowedMethods ( array  $methods)

Definition at line 44 of file SecurityPolicy.php.

setAllowedProperties ( array  $properties)

Definition at line 52 of file SecurityPolicy.php.

setAllowedTags ( array  $tags)

Definition at line 34 of file SecurityPolicy.php.

Field Documentation

$allowedFilters
protected

Definition at line 20 of file SecurityPolicy.php.

$allowedFunctions
protected

Definition at line 23 of file SecurityPolicy.php.

$allowedMethods
protected

Definition at line 21 of file SecurityPolicy.php.

$allowedProperties
protected

Definition at line 22 of file SecurityPolicy.php.

$allowedTags
protected

Definition at line 19 of file SecurityPolicy.php.


The documentation for this class was generated from the following file:

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:41:45 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.