|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Stores the Twig configuration. More...
Inheritance diagram for Twig_Environment:
Collaboration diagram for Twig_Environment:Public Member Functions | |
| __construct (Twig_LoaderInterface $loader=null, $options=array()) | |
| Constructor. More... | |
| getBaseTemplateClass () | |
| Gets the base template class for compiled templates. More... | |
| setBaseTemplateClass ($class) | |
| Sets the base template class for compiled templates. More... | |
| enableDebug () | |
| Enables debugging mode. More... | |
| disableDebug () | |
| Disables debugging mode. More... | |
| isDebug () | |
| Checks if debug mode is enabled. More... | |
| enableAutoReload () | |
| Enables the auto_reload option. More... | |
| disableAutoReload () | |
| Disables the auto_reload option. More... | |
| isAutoReload () | |
| Checks if the auto_reload option is enabled. More... | |
| enableStrictVariables () | |
| Enables the strict_variables option. More... | |
| disableStrictVariables () | |
| Disables the strict_variables option. More... | |
| isStrictVariables () | |
| Checks if the strict_variables option is enabled. More... | |
| getCache ($original=true) | |
| Gets the current cache implementation. More... | |
| setCache ($cache) | |
| Sets the current cache implementation. More... | |
| getCacheFilename ($name) | |
| Gets the cache filename for a given template. More... | |
| getTemplateClass ($name, $index=null) | |
| Gets the template class associated with the given string. More... | |
| getTemplateClassPrefix () | |
| Gets the template class prefix. More... | |
| render ($name, array $context=array()) | |
| Renders a template. More... | |
| display ($name, array $context=array()) | |
| Displays a template. More... | |
| load ($name) | |
| Loads a template. More... | |
| loadTemplate ($name, $index=null) | |
| Loads a template internal representation. More... | |
| createTemplate ($template) | |
| Creates a template from source. More... | |
| isTemplateFresh ($name, $time) | |
| Returns true if the template is still fresh. More... | |
| resolveTemplate ($names) | |
| Tries to load a template consecutively from an array. More... | |
| clearTemplateCache () | |
| Clears the internal template cache. More... | |
| clearCacheFiles () | |
| Clears the template cache files on the filesystem. More... | |
| getLexer () | |
| Gets the Lexer instance. More... | |
| setLexer (Twig_LexerInterface $lexer) | |
| tokenize ($source, $name=null) | |
| Tokenizes a source code. More... | |
| getParser () | |
| Gets the Parser instance. More... | |
| setParser (Twig_ParserInterface $parser) | |
| parse (Twig_TokenStream $stream) | |
| Converts a token stream to a node tree. More... | |
| getCompiler () | |
| Gets the Compiler instance. More... | |
| setCompiler (Twig_CompilerInterface $compiler) | |
| compile (Twig_NodeInterface $node) | |
| Compiles a node and returns the PHP code. More... | |
| compileSource ($source, $name=null) | |
| Compiles a template source code. More... | |
| setLoader (Twig_LoaderInterface $loader) | |
| getLoader () | |
| Gets the Loader instance. More... | |
| setCharset ($charset) | |
| Sets the default template charset. More... | |
| getCharset () | |
| Gets the default template charset. More... | |
| initRuntime () | |
| Initializes the runtime environment. More... | |
| hasExtension ($class) | |
| Returns true if the given extension is registered. More... | |
| addRuntimeLoader (Twig_RuntimeLoaderInterface $loader) | |
| Adds a runtime loader. More... | |
| getExtension ($class) | |
| Gets an extension by class name. More... | |
| getRuntime ($class) | |
| Returns the runtime implementation of a Twig element (filter/function/test). More... | |
| addExtension (Twig_ExtensionInterface $extension) | |
| removeExtension ($name) | |
| Removes an extension by name. More... | |
| setExtensions (array $extensions) | |
| Registers an array of extensions. More... | |
| getExtensions () | |
| Returns all registered extensions. More... | |
| addTokenParser (Twig_TokenParserInterface $parser) | |
| getTokenParsers () | |
| Gets the registered Token Parsers. More... | |
| getTags () | |
| Gets registered tags. More... | |
| addNodeVisitor (Twig_NodeVisitorInterface $visitor) | |
| getNodeVisitors () | |
| Gets the registered Node Visitors. More... | |
| addFilter ($name, $filter=null) | |
| Registers a Filter. More... | |
| getFilter ($name) | |
| Get a filter by name. More... | |
| registerUndefinedFilterCallback ($callable) | |
| getFilters () | |
| Gets the registered Filters. More... | |
| addTest ($name, $test=null) | |
| Registers a Test. More... | |
| getTests () | |
| Gets the registered Tests. More... | |
| getTest ($name) | |
| Gets a test by name. More... | |
| addFunction ($name, $function=null) | |
| Registers a Function. More... | |
| getFunction ($name) | |
| Get a function by name. More... | |
| registerUndefinedFunctionCallback ($callable) | |
| getFunctions () | |
| Gets registered functions. More... | |
| addGlobal ($name, $value) | |
| Registers a Global. More... | |
| getGlobals () | |
| Gets the registered Globals. More... | |
| mergeGlobals (array $context) | |
| Merges a context with the defined globals. More... | |
| getUnaryOperators () | |
| Gets the registered unary Operators. More... | |
| getBinaryOperators () | |
| Gets the registered binary Operators. More... | |
| computeAlternatives ($name, $items) | |
Data Fields | |
| const | VERSION = '1.35.3' |
| const | VERSION_ID = 13503 |
| const | MAJOR_VERSION = 1 |
| const | MINOR_VERSION = 35 |
| const | RELEASE_VERSION = 3 |
| const | EXTRA_VERSION = '' |
Protected Member Functions | |
| initGlobals () | |
| initExtensions () | |
| initExtension (Twig_ExtensionInterface $extension) | |
| writeCacheFile ($file, $content) | |
Protected Attributes | |
| $charset | |
| $loader | |
| $debug | |
| $autoReload | |
| $cache | |
| $lexer | |
| $parser | |
| $compiler | |
| $baseTemplateClass | |
| $extensions | |
| $parsers | |
| $visitors | |
| $filters | |
| $tests | |
| $functions | |
| $globals | |
| $runtimeInitialized = false | |
| $extensionInitialized = false | |
| $loadedTemplates | |
| $strictVariables | |
| $unaryOperators | |
| $binaryOperators | |
| $templateClassPrefix = '__TwigTemplate_' | |
| $functionCallbacks = array() | |
| $filterCallbacks = array() | |
| $staging | |
Private Member Functions | |
| updateOptionsHash () | |
Private Attributes | |
| $originalCache | |
| $bcWriteCacheFile = false | |
| $bcGetCacheFilename = false | |
| $lastModifiedExtension = 0 | |
| $extensionsByClass = array() | |
| $runtimeLoaders = array() | |
| $runtimes = array() | |
| $optionsHash | |
| $loading = array() | |
Stores the Twig configuration.
Definition at line 17 of file Environment.php.
| Twig_Environment::__construct | ( | Twig_LoaderInterface | $loader = null, |
$options = array() |
|||
| ) |
Constructor.
Available options:
| Twig_LoaderInterface | $loader | |
| array | $options | An array of options |
Definition at line 101 of file Environment.php.
References $loader, $options, $r, addExtension(), setCache(), and setLoader().
Here is the call graph for this function:| Twig_Environment::addExtension | ( | Twig_ExtensionInterface | $extension | ) |
Definition at line 938 of file Environment.php.
References Twig_ExtensionInterface\getName(), sprintf, and updateOptionsHash().
Referenced by __construct(), and setExtensions().
Here is the call graph for this function:
Here is the caller graph for this function:| Twig_Environment::addFilter | ( | $name, | |
$filter = null |
|||
| ) |
Registers a Filter.
| string | Twig_SimpleFilter | $name | The filter name or a Twig_SimpleFilter instance |
| Twig_FilterInterface | Twig_SimpleFilter | $filter |
Definition at line 1093 of file Environment.php.
| Twig_Environment::addFunction | ( | $name, | |
$function = null |
|||
| ) |
Registers a Function.
| string | Twig_SimpleFunction | $name | The function name or a Twig_SimpleFunction instance |
| Twig_FunctionInterface | Twig_SimpleFunction | $function |
Definition at line 1252 of file Environment.php.
| Twig_Environment::addGlobal | ( | $name, | |
| $value | |||
| ) |
Registers a Global.
New globals can be added before compiling or rendering a template; but after, you can only update existing globals.
| string | $name | The global name |
| mixed | $value | The global value |
Definition at line 1350 of file Environment.php.
References $name, initGlobals(), and sprintf.
Here is the call graph for this function:| Twig_Environment::addNodeVisitor | ( | Twig_NodeVisitorInterface | $visitor | ) |
Definition at line 1062 of file Environment.php.
| Twig_Environment::addRuntimeLoader | ( | Twig_RuntimeLoaderInterface | $loader | ) |
| Twig_Environment::addTest | ( | $name, | |
$test = null |
|||
| ) |
Registers a Test.
| string | Twig_SimpleTest | $name | The test name or a Twig_SimpleTest instance |
| Twig_TestInterface | Twig_SimpleTest | $test | A Twig_TestInterface instance or a Twig_SimpleTest instance |
Definition at line 1188 of file Environment.php.
| Twig_Environment::addTokenParser | ( | Twig_TokenParserInterface | $parser | ) |
Definition at line 1016 of file Environment.php.
References $parser.
| Twig_Environment::clearCacheFiles | ( | ) |
Clears the template cache files on the filesystem.
Definition at line 620 of file Environment.php.
| Twig_Environment::clearTemplateCache | ( | ) |
Clears the internal template cache.
Definition at line 608 of file Environment.php.
References sprintf.
| Twig_Environment::compile | ( | Twig_NodeInterface | $node | ) |
Compiles a node and returns the PHP code.
Definition at line 747 of file Environment.php.
Referenced by compileSource().
Here is the caller graph for this function:| Twig_Environment::compileSource | ( | $source, | |
$name = null |
|||
| ) |
Compiles a template source code.
| string | Twig_Source | $source | The template source code |
| string | $name | The template name (deprecated) |
| Twig_Error_Syntax | When there was an error during tokenizing, parsing or compiling |
Definition at line 766 of file Environment.php.
References $name, $source, compile(), parse(), Twig_Error\setSourceContext(), sprintf, and tokenize().
Referenced by loadTemplate().
Here is the call graph for this function:
Here is the caller graph for this function:| Twig_Environment::computeAlternatives | ( | $name, | |
| $items | |||
| ) |
Definition at line 1447 of file Environment.php.
References $name, Twig_Error_Syntax\computeAlternatives(), and sprintf.
Here is the call graph for this function:| Twig_Environment::createTemplate | ( | $template | ) |
Creates a template from source.
This method should not be used as a generic way to load templates.
| string | $template | The template name |
| Twig_Error_Loader | When the template cannot be found |
| Twig_Error_Syntax | When an error occurred during compilation |
Definition at line 510 of file Environment.php.
References $current, $loader, $name, $template, getLoader(), GuzzleHttp\Psr7\hash(), loadTemplate(), setLoader(), and sprintf.
Here is the call graph for this function:| Twig_Environment::disableAutoReload | ( | ) |
Disables the auto_reload option.
Definition at line 210 of file Environment.php.
| Twig_Environment::disableDebug | ( | ) |
Disables debugging mode.
Definition at line 183 of file Environment.php.
References updateOptionsHash().
Here is the call graph for this function:| Twig_Environment::disableStrictVariables | ( | ) |
Disables the strict_variables option.
Definition at line 237 of file Environment.php.
References updateOptionsHash().
Here is the call graph for this function:| Twig_Environment::display | ( | $name, | |
| array | $context = array() |
||
| ) |
Displays a template.
| string | $name | The template name |
| array | $context | An array of parameters to pass to the template |
| Twig_Error_Loader | When the template cannot be found |
| Twig_Error_Syntax | When an error occurred during compilation |
| Twig_Error_Runtime | When an error occurred during rendering |
Definition at line 376 of file Environment.php.
References $name, and loadTemplate().
Here is the call graph for this function:| Twig_Environment::enableAutoReload | ( | ) |
Enables the auto_reload option.
Definition at line 202 of file Environment.php.
| Twig_Environment::enableDebug | ( | ) |
Enables debugging mode.
Definition at line 174 of file Environment.php.
References updateOptionsHash().
Here is the call graph for this function:| Twig_Environment::enableStrictVariables | ( | ) |
Enables the strict_variables option.
Definition at line 228 of file Environment.php.
References updateOptionsHash().
Here is the call graph for this function:| Twig_Environment::getBaseTemplateClass | ( | ) |
Gets the base template class for compiled templates.
Definition at line 155 of file Environment.php.
References $baseTemplateClass.
| Twig_Environment::getBinaryOperators | ( | ) |
Gets the registered binary Operators.
Definition at line 1435 of file Environment.php.
References $binaryOperators, and initExtensions().
Here is the call graph for this function:| Twig_Environment::getCache | ( | $original = true | ) |
Gets the current cache implementation.
| bool | $original | Whether to return the original cache option or the real cache instance |
Definition at line 262 of file Environment.php.
References $cache.
| Twig_Environment::getCacheFilename | ( | $name | ) |
Gets the cache filename for a given template.
| string | $name | The template name |
Definition at line 302 of file Environment.php.
References $key, $name, getTemplateClass(), and sprintf.
Referenced by loadTemplate().
Here is the call graph for this function:
Here is the caller graph for this function:| Twig_Environment::getCharset | ( | ) |
Gets the default template charset.
Definition at line 821 of file Environment.php.
References $charset.
| Twig_Environment::getCompiler | ( | ) |
Gets the Compiler instance.
Definition at line 726 of file Environment.php.
| Twig_Environment::getExtension | ( | $class | ) |
Gets an extension by class name.
| string | $class | The extension class name |
Definition at line 890 of file Environment.php.
References sprintf.
| Twig_Environment::getExtensions | ( | ) |
Returns all registered extensions.
Definition at line 1011 of file Environment.php.
References $extensions.
Referenced by initRuntime().
Here is the caller graph for this function:| Twig_Environment::getFilter | ( | $name | ) |
Get a filter by name.
Subclasses may override this method and load filters differently; so no list of filters is available.
| string | $name | The filter name |
Definition at line 1125 of file Environment.php.
References $name, and initExtensions().
Here is the call graph for this function:| Twig_Environment::getFilters | ( | ) |
Gets the registered Filters.
Be warned that this method cannot return filters defined with registerUndefinedFilterCallback.
Definition at line 1173 of file Environment.php.
References $filters, and initExtensions().
Here is the call graph for this function:| Twig_Environment::getFunction | ( | $name | ) |
Get a function by name.
Subclasses may override this method and load functions differently; so no list of functions is available.
| string | $name | function name |
Definition at line 1284 of file Environment.php.
References $function, $name, and initExtensions().
Here is the call graph for this function:| Twig_Environment::getFunctions | ( | ) |
Gets registered functions.
Be warned that this method cannot return functions defined with registerUndefinedFunctionCallback.
Definition at line 1332 of file Environment.php.
References $functions, and initExtensions().
Here is the call graph for this function:| Twig_Environment::getGlobals | ( | ) |
Gets the registered Globals.
Definition at line 1379 of file Environment.php.
References $globals, and initGlobals().
Referenced by mergeGlobals().
Here is the call graph for this function:
Here is the caller graph for this function:| Twig_Environment::getLexer | ( | ) |
Gets the Lexer instance.
Definition at line 640 of file Environment.php.
| Twig_Environment::getLoader | ( | ) |
Gets the Loader instance.
Definition at line 797 of file Environment.php.
References $loader.
Referenced by createTemplate(), getTemplateClass(), isTemplateFresh(), and loadTemplate().
Here is the caller graph for this function:| Twig_Environment::getNodeVisitors | ( | ) |
Gets the registered Node Visitors.
Definition at line 1078 of file Environment.php.
References $visitors, and initExtensions().
Here is the call graph for this function:| Twig_Environment::getParser | ( | ) |
Gets the Parser instance.
Definition at line 687 of file Environment.php.
| Twig_Environment::getRuntime | ( | $class | ) |
Returns the runtime implementation of a Twig element (filter/function/test).
| string | $class | A runtime class name |
| Twig_Error_Runtime | When the template cannot be found |
Definition at line 923 of file Environment.php.
| Twig_Environment::getTags | ( | ) |
Gets registered tags.
Be warned that this method cannot return tags defined by Twig_TokenParserBrokerInterface classes.
Definition at line 1050 of file Environment.php.
References $parser, $tags, and getTokenParsers().
Here is the call graph for this function:| Twig_Environment::getTemplateClass | ( | $name, | |
$index = null |
|||
| ) |
Gets the template class associated with the given string.
The generated template class is based on the following parameters:
| string | $name | The name for which to calculate the template class name |
| int | null | $index | The index if it is an embedded template |
Definition at line 328 of file Environment.php.
References $index, $key, $name, and getLoader().
Referenced by getCacheFilename(), and loadTemplate().
Here is the call graph for this function:
Here is the caller graph for this function:| Twig_Environment::getTemplateClassPrefix | ( | ) |
Gets the template class prefix.
Definition at line 342 of file Environment.php.
References $templateClassPrefix, and sprintf.
| Twig_Environment::getTest | ( | $name | ) |
Gets a test by name.
| string | $name | The test name |
Definition at line 1233 of file Environment.php.
References $name, and initExtensions().
Here is the call graph for this function:| Twig_Environment::getTests | ( | ) |
Gets the registered Tests.
Definition at line 1215 of file Environment.php.
References $tests, and initExtensions().
Here is the call graph for this function:| Twig_Environment::getTokenParsers | ( | ) |
Gets the registered Token Parsers.
Definition at line 1032 of file Environment.php.
References $parsers, and initExtensions().
Referenced by getTags().
Here is the call graph for this function:
Here is the caller graph for this function:| Twig_Environment::getUnaryOperators | ( | ) |
Gets the registered unary Operators.
Definition at line 1419 of file Environment.php.
References $unaryOperators, and initExtensions().
Here is the call graph for this function:| Twig_Environment::hasExtension | ( | $class | ) |
Returns true if the given extension is registered.
| string | $class | The extension class name |
Definition at line 855 of file Environment.php.
References sprintf.
|
protected |
Definition at line 1510 of file Environment.php.
References $function, $name, $parser, $test, Twig_ExtensionInterface\getFilters(), Twig_ExtensionInterface\getFunctions(), Twig_ExtensionInterface\getNodeVisitors(), Twig_ExtensionInterface\getOperators(), Twig_ExtensionInterface\getTests(), Twig_ExtensionInterface\getTokenParsers(), and sprintf.
Referenced by initExtensions().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1485 of file Environment.php.
References initExtension().
Referenced by getBinaryOperators(), getFilter(), getFilters(), getFunction(), getFunctions(), getNodeVisitors(), getTest(), getTests(), getTokenParsers(), and getUnaryOperators().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1457 of file Environment.php.
References $globals, $m, $name, and sprintf.
Referenced by addGlobal(), and getGlobals().
Here is the caller graph for this function:| Twig_Environment::initRuntime | ( | ) |
Initializes the runtime environment.
Definition at line 831 of file Environment.php.
References $m, $name, getExtensions(), and sprintf.
Referenced by loadTemplate().
Here is the call graph for this function:
Here is the caller graph for this function:| Twig_Environment::isAutoReload | ( | ) |
Checks if the auto_reload option is enabled.
Definition at line 220 of file Environment.php.
References $autoReload.
Referenced by loadTemplate().
Here is the caller graph for this function:| Twig_Environment::isDebug | ( | ) |
Checks if debug mode is enabled.
Definition at line 194 of file Environment.php.
References $debug.
| Twig_Environment::isStrictVariables | ( | ) |
Checks if the strict_variables option is enabled.
Definition at line 248 of file Environment.php.
References $strictVariables.
| Twig_Environment::isTemplateFresh | ( | $name, | |
| $time | |||
| ) |
Returns true if the template is still fresh.
Besides checking the loader for freshness information, this method also checks if the enabled extensions have not changed.
| string | $name | The template name |
| int | $time | The last modification time of the cached template |
Definition at line 548 of file Environment.php.
References $name, $r, $time, and getLoader().
Referenced by loadTemplate().
Here is the call graph for this function:
Here is the caller graph for this function:| Twig_Environment::load | ( | $name | ) |
Loads a template.
| string | Twig_TemplateWrapper | Twig_Template | $name | The template name |
| Twig_Error_Loader | When the template cannot be found |
| Twig_Error_Runtime | When a previously generated cache is corrupted |
| Twig_Error_Syntax | When an error occurred during compilation |
Definition at line 392 of file Environment.php.
References $name, and loadTemplate().
Here is the call graph for this function:| Twig_Environment::loadTemplate | ( | $name, | |
$index = null |
|||
| ) |
Loads a template internal representation.
This method is for internal use only and should never be called directly.
| string | $name | The template name |
| int | $index | The index if it is an embedded template |
| Twig_Error_Loader | When the template cannot be found |
| Twig_Error_Runtime | When a previously generated cache is corrupted |
| Twig_Error_Syntax | When an error occurred during compilation |
Definition at line 422 of file Environment.php.
References $index, $key, $loader, $name, $source, compileSource(), getCacheFilename(), getLoader(), getTemplateClass(), initRuntime(), isAutoReload(), isTemplateFresh(), sprintf, and writeCacheFile().
Referenced by createTemplate(), display(), load(), render(), and resolveTemplate().
Here is the call graph for this function:
Here is the caller graph for this function:| Twig_Environment::mergeGlobals | ( | array | $context | ) |
Merges a context with the defined globals.
| array | $context | An array representing the context |
Definition at line 1399 of file Environment.php.
References $key, and getGlobals().
Here is the call graph for this function:| Twig_Environment::parse | ( | Twig_TokenStream | $stream | ) |
Converts a token stream to a node tree.
| Twig_Error_Syntax | When the token stream is syntactically or semantically wrong |
Definition at line 710 of file Environment.php.
References GuzzleHttp\Psr7\$stream.
Referenced by compileSource().
Here is the caller graph for this function:| Twig_Environment::registerUndefinedFilterCallback | ( | $callable | ) |
Definition at line 1157 of file Environment.php.
| Twig_Environment::registerUndefinedFunctionCallback | ( | $callable | ) |
Definition at line 1316 of file Environment.php.
| Twig_Environment::removeExtension | ( | $name | ) |
Removes an extension by name.
This method is deprecated and you should not use it.
| string | $name | The extension name |
Definition at line 967 of file Environment.php.
References $name, sprintf, and updateOptionsHash().
Here is the call graph for this function:| Twig_Environment::render | ( | $name, | |
| array | $context = array() |
||
| ) |
Renders a template.
| string | $name | The template name |
| array | $context | An array of parameters to pass to the template |
| Twig_Error_Loader | When the template cannot be found |
| Twig_Error_Syntax | When an error occurred during compilation |
| Twig_Error_Runtime | When an error occurred during rendering |
Definition at line 361 of file Environment.php.
References $name, and loadTemplate().
Here is the call graph for this function:| Twig_Environment::resolveTemplate | ( | $names | ) |
Tries to load a template consecutively from an array.
Similar to loadTemplate() but it also accepts instances of Twig_Template and Twig_TemplateWrapper, and an array of templates where each is tried to be loaded.
| string | Twig_Template | Twig_TemplateWrapper | array | $names | A template or an array of templates to try consecutively |
| Twig_Error_Loader | When none of the templates can be found |
| Twig_Error_Syntax | When an error occurred during compilation |
Definition at line 575 of file Environment.php.
References $name, $names, loadTemplate(), and sprintf.
Here is the call graph for this function:| Twig_Environment::setBaseTemplateClass | ( | $class | ) |
Sets the base template class for compiled templates.
| string | $class | The base template class name |
Definition at line 165 of file Environment.php.
References updateOptionsHash().
Here is the call graph for this function:| Twig_Environment::setCache | ( | $cache | ) |
Sets the current cache implementation.
| Twig_CacheInterface | string | false | $cache | A Twig_CacheInterface implementation, an absolute path to the compiled templates, or false to disable cache |
Definition at line 274 of file Environment.php.
References $cache, and sprintf.
Referenced by __construct().
Here is the caller graph for this function:| Twig_Environment::setCharset | ( | $charset | ) |
Sets the default template charset.
| string | $charset | The default charset |
Definition at line 811 of file Environment.php.
References $charset.
| Twig_Environment::setCompiler | ( | Twig_CompilerInterface | $compiler | ) |
Definition at line 737 of file Environment.php.
References $compiler.
| Twig_Environment::setExtensions | ( | array | $extensions | ) |
Registers an array of extensions.
| array | $extensions | An array of extensions |
Definition at line 999 of file Environment.php.
References $extensions, and addExtension().
Here is the call graph for this function:| Twig_Environment::setLexer | ( | Twig_LexerInterface | $lexer | ) |
Definition at line 651 of file Environment.php.
References $lexer.
| Twig_Environment::setLoader | ( | Twig_LoaderInterface | $loader | ) |
Definition at line 783 of file Environment.php.
References $loader, and sprintf.
Referenced by __construct(), and createTemplate().
Here is the caller graph for this function:| Twig_Environment::setParser | ( | Twig_ParserInterface | $parser | ) |
Definition at line 698 of file Environment.php.
References $parser.
| Twig_Environment::tokenize | ( | $source, | |
$name = null |
|||
| ) |
Tokenizes a source code.
| string | Twig_Source | $source | The template source code |
| string | $name | The template name (deprecated) |
| Twig_Error_Syntax | When the code is syntactically wrong |
Definition at line 666 of file Environment.php.
References $name, $source, and sprintf.
Referenced by compileSource().
Here is the caller graph for this function:
|
private |
Definition at line 1586 of file Environment.php.
Referenced by addExtension(), disableDebug(), disableStrictVariables(), enableDebug(), enableStrictVariables(), removeExtension(), and setBaseTemplateClass().
Here is the caller graph for this function:
|
protected |
Definition at line 1581 of file Environment.php.
References $file.
Referenced by loadTemplate().
Here is the caller graph for this function:
|
protected |
Definition at line 29 of file Environment.php.
Referenced by isAutoReload().
|
protected |
Definition at line 34 of file Environment.php.
Referenced by getBaseTemplateClass().
|
private |
Definition at line 55 of file Environment.php.
|
private |
Definition at line 54 of file Environment.php.
|
protected |
Definition at line 47 of file Environment.php.
Referenced by getBinaryOperators().
|
protected |
Definition at line 30 of file Environment.php.
Referenced by getCache(), and setCache().
|
protected |
Definition at line 26 of file Environment.php.
Referenced by getCharset(), and setCharset().
|
protected |
Definition at line 33 of file Environment.php.
Referenced by getCompiler(), and setCompiler().
|
protected |
Definition at line 28 of file Environment.php.
Referenced by isDebug().
|
protected |
Definition at line 43 of file Environment.php.
|
protected |
Definition at line 35 of file Environment.php.
Referenced by getExtensions(), and setExtensions().
|
private |
Definition at line 57 of file Environment.php.
|
protected |
Definition at line 50 of file Environment.php.
|
protected |
Definition at line 38 of file Environment.php.
Referenced by getFilters().
|
protected |
Definition at line 49 of file Environment.php.
|
protected |
Definition at line 40 of file Environment.php.
Referenced by getFunctions().
|
protected |
Definition at line 41 of file Environment.php.
Referenced by getGlobals(), and initGlobals().
|
private |
Definition at line 56 of file Environment.php.
|
protected |
Definition at line 31 of file Environment.php.
Referenced by getLexer(), and setLexer().
|
protected |
Definition at line 44 of file Environment.php.
|
protected |
Definition at line 27 of file Environment.php.
Referenced by JaimePerez\TwigConfigurableI18n\Twig\Environment\__construct(), __construct(), addRuntimeLoader(), createTemplate(), getLoader(), getRuntime(), loadTemplate(), and setLoader().
|
private |
Definition at line 61 of file Environment.php.
|
private |
Definition at line 60 of file Environment.php.
|
private |
Definition at line 53 of file Environment.php.
|
protected |
Definition at line 32 of file Environment.php.
Referenced by addTokenParser(), getParser(), getTags(), initExtension(), and setParser().
|
protected |
Definition at line 36 of file Environment.php.
Referenced by getTokenParsers().
|
protected |
Definition at line 42 of file Environment.php.
|
private |
Definition at line 58 of file Environment.php.
|
private |
Definition at line 59 of file Environment.php.
|
protected |
Definition at line 51 of file Environment.php.
|
protected |
Definition at line 45 of file Environment.php.
Referenced by isStrictVariables().
|
protected |
Definition at line 48 of file Environment.php.
Referenced by getTemplateClassPrefix().
|
protected |
Definition at line 39 of file Environment.php.
Referenced by getTests().
|
protected |
Definition at line 46 of file Environment.php.
Referenced by getUnaryOperators().
|
protected |
Definition at line 37 of file Environment.php.
Referenced by getNodeVisitors().
| const Twig_Environment::EXTRA_VERSION = '' |
Definition at line 24 of file Environment.php.
| const Twig_Environment::MAJOR_VERSION = 1 |
Definition at line 21 of file Environment.php.
| const Twig_Environment::MINOR_VERSION = 35 |
Definition at line 22 of file Environment.php.
| const Twig_Environment::RELEASE_VERSION = 3 |
Definition at line 23 of file Environment.php.
| const Twig_Environment::VERSION = '1.35.3' |
Definition at line 19 of file Environment.php.
| const Twig_Environment::VERSION_ID = 13503 |
Definition at line 20 of file Environment.php.