\Twig_Extension_Core
Synopsis
class Twig_Extension_Core
extends Twig_Extension
{
- // members
- protected array $dateFormats;
- protected array $numberFormat;
- protected $timezone;
- // methods
- public void setDateFormat()
- public array getDateFormat()
- public void setTimezone()
- public DateTimeZone getTimezone()
- public void setNumberFormat()
- public array getNumberFormat()
- public array getTokenParsers()
- public array getFilters()
- public array getFunctions()
- public array getTests()
- public array getOperators()
- public void parseNotTestExpression()
- public void parseTestExpression()
- protected void getTestNodeClass()
- public string getName()
- // Inherited methods from Twig_Extension
- public void initRuntime()
- public array getTokenParsers()
- public array getNodeVisitors()
- public array getFilters()
- public array getTests()
- public array getFunctions()
- public array getOperators()
- public array getGlobals()
Hierarchy
Extends
Members
protected
- $dateFormats
- $numberFormat
- $timezone
Methods
protected
public
- getDateFormat() — Gets the default format to be used by the date filter.
- getFilters() — Returns a list of filters to add to the existing list.
- getFunctions() — Returns a list of global functions to add to the existing list.
- getName() — Returns the name of the extension.
- getNumberFormat() — Get the default format used by the number_format filter.
- getOperators() — Returns a list of operators to add to the existing list.
- getTests() — Returns a list of tests to add to the existing list.
- getTimezone() — Gets the default timezone to be used by the date filter.
- getTokenParsers() — Returns the token parser instance to add to the existing list.
- parseNotTestExpression()
- parseTestExpression()
- setDateFormat() — Sets the default format to be used by the date filter.
- setNumberFormat() — Sets the default format to be used by the number_format filter.
- setTimezone() — Sets the default timezone to be used by the date filter.
Inherited from Twig_Extension
public
- getFilters() — Returns a list of filters to add to the existing list.
- getFunctions() — Returns a list of functions to add to the existing list.
- getGlobals() — Returns a list of global variables to add to the existing list.
- getNodeVisitors() — Returns the node visitor instances to add to the existing list.
- getOperators() — Returns a list of operators to add to the existing list.
- getTests() — Returns a list of tests to add to the existing list.
- getTokenParsers() — Returns the token parser instances to add to the existing list.
- initRuntime() — Initializes the runtime environment.