|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Inheritance diagram for JaimePerez\TwigConfigurableI18n\Twig\Environment:
Collaboration diagram for JaimePerez\TwigConfigurableI18n\Twig\Environment:Public Member Functions | |
| __construct (\Twig_LoaderInterface $loader=null, $options=array()) | |
| Extended constructor. More... | |
| getOptions () | |
| Gets the array of options used in this environment. More... | |
Public Member Functions inherited from Twig_Environment | |
| __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) | |
Protected Attributes | |
| $options = array() | |
Protected Attributes inherited from Twig_Environment | |
| $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 | |
Additional Inherited Members | |
Data Fields inherited from Twig_Environment | |
| 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 inherited from Twig_Environment | |
| initGlobals () | |
| initExtensions () | |
| initExtension (Twig_ExtensionInterface $extension) | |
| writeCacheFile ($file, $content) | |
Definition at line 12 of file Environment.php.
| JaimePerez\TwigConfigurableI18n\Twig\Environment::__construct | ( | \Twig_LoaderInterface | $loader = null, |
$options = array() |
|||
| ) |
Extended constructor.
Additional options supported:
| \Twig_LoaderInterface | null | $loader | A Twig_LoaderInterface instance. |
| array | $options | An array of options. |
Definition at line 34 of file Environment.php.
References Twig_Environment\$loader, and JaimePerez\TwigConfigurableI18n\Twig\Environment\$options.
| JaimePerez\TwigConfigurableI18n\Twig\Environment::getOptions | ( | ) |
Gets the array of options used in this environment.
Definition at line 46 of file Environment.php.
References JaimePerez\TwigConfigurableI18n\Twig\Environment\$options.
|
protected |
Definition at line 18 of file Environment.php.
Referenced by JaimePerez\TwigConfigurableI18n\Twig\Environment\__construct(), and JaimePerez\TwigConfigurableI18n\Twig\Environment\getOptions().