ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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) | |
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 () | |
getName () | |
Protected Attributes | |
$sandboxedGlobally | |
$sandboxed | |
$policy | |
Definition at line 15 of file Sandbox.php.
Twig_Extension_Sandbox::__construct | ( | Twig_Sandbox_SecurityPolicyInterface | $policy, |
$sandboxed = false |
|||
) |
Twig_Extension_Sandbox::checkMethodAllowed | ( | $obj, | |
$method | |||
) |
Definition at line 74 of file Sandbox.php.
References isSandboxed().
Twig_Extension_Sandbox::checkPropertyAllowed | ( | $obj, | |
$method | |||
) |
Definition at line 81 of file Sandbox.php.
References isSandboxed().
Twig_Extension_Sandbox::checkSecurity | ( | $tags, | |
$filters, | |||
$functions | |||
) |
Definition at line 67 of file Sandbox.php.
References $tags, and isSandboxed().
Twig_Extension_Sandbox::disableSandbox | ( | ) |
Definition at line 42 of file Sandbox.php.
Twig_Extension_Sandbox::enableSandbox | ( | ) |
Definition at line 37 of file Sandbox.php.
Twig_Extension_Sandbox::ensureToStringAllowed | ( | $obj | ) |
Definition at line 88 of file Sandbox.php.
References isSandboxed().
Twig_Extension_Sandbox::getName | ( | ) |
Returns the name of the extension.
Implements Twig_ExtensionInterface.
Definition at line 97 of file Sandbox.php.
Twig_Extension_Sandbox::getNodeVisitors | ( | ) |
Returns the node visitor instances to add to the existing list.
Implements Twig_ExtensionInterface.
Definition at line 32 of file Sandbox.php.
Twig_Extension_Sandbox::getSecurityPolicy | ( | ) |
Definition at line 62 of file Sandbox.php.
References $policy.
Twig_Extension_Sandbox::getTokenParsers | ( | ) |
Returns the token parser instances to add to the existing list.
Implements Twig_ExtensionInterface.
Definition at line 27 of file Sandbox.php.
Twig_Extension_Sandbox::isSandboxed | ( | ) |
Definition at line 47 of file Sandbox.php.
References $sandboxed.
Referenced by checkMethodAllowed(), checkPropertyAllowed(), checkSecurity(), and ensureToStringAllowed().
Twig_Extension_Sandbox::isSandboxedGlobally | ( | ) |
Twig_Extension_Sandbox::setSecurityPolicy | ( | Twig_Sandbox_SecurityPolicyInterface | $policy | ) |
|
protected |
Definition at line 19 of file Sandbox.php.
Referenced by __construct(), getSecurityPolicy(), and setSecurityPolicy().
|
protected |
Definition at line 18 of file Sandbox.php.
Referenced by __construct(), and isSandboxed().
|
protected |
Definition at line 17 of file Sandbox.php.
Referenced by isSandboxedGlobally().