[ Index ]

PHP Cross Reference of phpBB-3.3.0-deutsch

title

Body

[close]

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

(no description)

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

Defines 13 functions

  __construct()
  getTokenParsers()
  getNodeVisitors()
  getFilters()
  setDefaultStrategy()
  getDefaultStrategy()
  setEscaper()
  getEscapers()
  setSafeClasses()
  addSafeClass()
  twig_raw_filter()
  twig_escape_filter()
  twig_escape_filter_is_safe()

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.

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

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.

return: string
param: string $string A PHP variable

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

return: 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)

twig_escape_filter_is_safe(Node $filterArgs)   X-Ref




Generated: Tue Apr 7 19:44:41 2020 Cross-referenced by PHPXref 0.7.1