PEEL Shopping
Open source ecommerce : PEEL Shopping
Public Member Functions | Protected Attributes
Twig_Extension_Sandbox Class Reference
Inheritance diagram for Twig_Extension_Sandbox:
Twig_Extension Twig_ExtensionInterface

Public Member Functions

 __construct (Twig_Sandbox_SecurityPolicyInterface $policy, $sandboxed=false)
 
 getTokenParsers ()
 Returns the token parser instances to add to the existing list. More...
 
 getNodeVisitors ()
 Returns the node visitor instances to add to the existing list. More...
 
 enableSandbox ()
 
 disableSandbox ()
 
 isSandboxed ()
 
 isSandboxedGlobally ()
 
 setSecurityPolicy (Twig_Sandbox_SecurityPolicyInterface $policy)
 
 getSecurityPolicy ()
 
 checkSecurity ($tags, $filters, $functions)
 
 checkMethodAllowed ($obj, $method)
 
 checkPropertyAllowed ($obj, $method)
 
 ensureToStringAllowed ($obj)
 
 getName ()
 Returns the name of the extension. More...
 
- Public Member Functions inherited from Twig_Extension
 initRuntime (Twig_Environment $environment)
 Initializes the runtime environment. More...
 
 getTokenParsers ()
 Returns the token parser instances to add to the existing list. More...
 
 getNodeVisitors ()
 Returns the node visitor instances to add to the existing list. More...
 
 getFilters ()
 Returns a list of filters to add to the existing list. More...
 
 getTests ()
 Returns a list of tests to add to the existing list. More...
 
 getFunctions ()
 Returns a list of functions to add to the existing list. More...
 
 getOperators ()
 Returns a list of operators to add to the existing list. More...
 
 getGlobals ()
 Returns a list of global variables to add to the existing list. More...
 

Protected Attributes

 $sandboxedGlobally
 
 $sandboxed
 
 $policy
 

Detailed Description

Definition at line 11 of file Sandbox.php.

Constructor & Destructor Documentation

__construct ( Twig_Sandbox_SecurityPolicyInterface  $policy,
  $sandboxed = false 
)

Definition at line 17 of file Sandbox.php.

Member Function Documentation

checkMethodAllowed (   $obj,
  $method 
)

Definition at line 80 of file Sandbox.php.

checkPropertyAllowed (   $obj,
  $method 
)

Definition at line 87 of file Sandbox.php.

checkSecurity (   $tags,
  $filters,
  $functions 
)

Definition at line 73 of file Sandbox.php.

disableSandbox ( )

Definition at line 48 of file Sandbox.php.

enableSandbox ( )

Definition at line 43 of file Sandbox.php.

ensureToStringAllowed (   $obj)

Definition at line 94 of file Sandbox.php.

getName ( )

Returns the name of the extension.

Returns
string The extension name

Implements Twig_ExtensionInterface.

Definition at line 108 of file Sandbox.php.

getNodeVisitors ( )

Returns the node visitor instances to add to the existing list.

Returns
array An array of Twig_NodeVisitorInterface instances

Implements Twig_ExtensionInterface.

Definition at line 38 of file Sandbox.php.

getSecurityPolicy ( )

Definition at line 68 of file Sandbox.php.

getTokenParsers ( )

Returns the token parser instances to add to the existing list.

Returns
array An array of Twig_TokenParserInterface or Twig_TokenParserBrokerInterface instances

Implements Twig_ExtensionInterface.

Definition at line 28 of file Sandbox.php.

isSandboxed ( )

Definition at line 53 of file Sandbox.php.

isSandboxedGlobally ( )

Definition at line 58 of file Sandbox.php.

setSecurityPolicy ( Twig_Sandbox_SecurityPolicyInterface  $policy)

Definition at line 63 of file Sandbox.php.

Field Documentation

$policy
protected

Definition at line 15 of file Sandbox.php.

$sandboxed
protected

Definition at line 14 of file Sandbox.php.

$sandboxedGlobally
protected

Definition at line 13 of file Sandbox.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:44 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.