|
| __construct (Twig_Environment $twig, TimeDataCollector $timeDataCollector=null) |
|
| __call ($name, $arguments) |
|
| getRenderedTemplates () |
|
| addRenderedTemplate (array $info) |
|
| getTimeDataCollector () |
|
| getBaseTemplateClass () |
|
| setBaseTemplateClass ($class) |
|
| enableDebug () |
|
| disableDebug () |
|
| isDebug () |
|
| enableAutoReload () |
|
| disableAutoReload () |
|
| isAutoReload () |
|
| enableStrictVariables () |
|
| disableStrictVariables () |
|
| isStrictVariables () |
|
| getCache ($original=true) |
|
| setCache ($cache) |
|
| getCacheFilename ($name) |
|
| getTemplateClass ($name, $index=null) |
|
| getTemplateClassPrefix () |
|
| render ($name, array $context=array()) |
|
| display ($name, array $context=array()) |
|
| loadTemplate ($name, $index=null) |
|
| isTemplateFresh ($name, $time) |
|
| resolveTemplate ($names) |
|
| clearTemplateCache () |
|
| clearCacheFiles () |
|
| getLexer () |
|
| setLexer (Twig_LexerInterface $lexer) |
|
| tokenize ($source, $name=null) |
|
| getParser () |
|
| setParser (Twig_ParserInterface $parser) |
|
| parse (Twig_TokenStream $tokens) |
|
| getCompiler () |
|
| setCompiler (Twig_CompilerInterface $compiler) |
|
| compile (Twig_NodeInterface $node) |
|
| compileSource ($source, $name=null) |
|
| setLoader (Twig_LoaderInterface $loader) |
|
| getLoader () |
|
| setCharset ($charset) |
|
| getCharset () |
|
| initRuntime () |
|
| hasExtension ($name) |
|
| getExtension ($name) |
|
| addExtension (Twig_ExtensionInterface $extension) |
|
| removeExtension ($name) |
|
| setExtensions (array $extensions) |
|
| getExtensions () |
|
| addTokenParser (Twig_TokenParserInterface $parser) |
|
| getTokenParsers () |
|
| getTags () |
|
| addNodeVisitor (Twig_NodeVisitorInterface $visitor) |
|
| getNodeVisitors () |
|
| addFilter ($name, $filter=null) |
|
| getFilter ($name) |
|
| registerUndefinedFilterCallback ($callable) |
|
| getFilters () |
|
| addTest ($name, $test=null) |
|
| getTests () |
|
| getTest ($name) |
|
| addFunction ($name, $function=null) |
|
| getFunction ($name) |
|
| registerUndefinedFunctionCallback ($callable) |
|
| getFunctions () |
|
| addGlobal ($name, $value) |
|
| getGlobals () |
|
| mergeGlobals (array $context) |
|
| getUnaryOperators () |
|
| getBinaryOperators () |
|
| computeAlternatives ($name, $items) |
|
Wrapped a Twig Environment to provide profiling features
- Obsolète: