[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch




/vendor/twig/twig/src/Extension/ -> EscaperExtension.php (summary)

(no description)

File Size: 430 lines (15 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 13 functions


Functions that are not part of a class:

__construct($defaultStrategy = 'html')   X-Ref

param: string|false|callable $defaultStrategy An escaping strategy

getTokenParsers()   X-Ref
No description

getNodeVisitors()   X-Ref
No description

getFilters()   X-Ref
No description

setDefaultStrategy($defaultStrategy)   X-Ref
Sets the default strategy to use when not defined by the user.

The strategy can be a valid PHP callback that takes the template
name as an argument and returns the strategy to use.

param: string|false|callable $defaultStrategy An escaping strategy

getDefaultStrategy($name)   X-Ref
Gets the default strategy to use when not defined by the user.

param: string $name The template name
return: string|false The default strategy to use for the template

setEscaper($strategy, callable $callable)   X-Ref
Defines a new escaper to be used via the escape filter.

param: string   $strategy The strategy name that should be used as a strategy in the escape call
param: callable $callable A valid PHP callable

getEscapers()   X-Ref
Gets all defined escapers.

return: callable[] An array of escapers

setSafeClasses(array $safeClasses = [])   X-Ref
No description

addSafeClass(string $class, array $strategies)   X-Ref
No description

twig_raw_filter($string)   X-Ref
Marks a variable as being safe.

param: string $string A PHP variable
return: string

twig_escape_filter(Environment $env, $string, $strategy = 'html', $charset = null, $autoescape = false)   X-Ref
Escapes a string.

param: mixed  $string     The value to be escaped
param: string $strategy   The escaping strategy
param: string $charset    The charset
param: bool   $autoescape Whether the function is called by the auto-escaping feature (true) or by the developer (false)
return: string

twig_escape_filter_is_safe(Node $filterArgs)   X-Ref

Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1