[ Index ] |
PHP Cross Reference of phpBB-3.1.12-deutsch |
[Source view] [Print] [Project Stats]
Default base class for compiled templates.
Author: | Fabien Potencier <fabien@symfony.com> |
File Size: | 620 lines (21 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
__construct(Twig_Environment $env) X-Ref |
Constructor. param: Twig_Environment $env A Twig_Environment instance |
getEnvironment() X-Ref |
getParent(array $context) X-Ref |
Returns the parent template. This method is for internal use only and should never be called directly. param: array $context return: Twig_TemplateInterface|false The parent template or false if there is no parent |
doGetParent(array $context) X-Ref |
No description |
isTraitable() X-Ref |
No description |
displayParentBlock($name, array $context, array $blocks = array() X-Ref |
Displays a parent block. This method is for internal use only and should never be called directly. param: string $name The block name to display from the parent param: array $context The context param: array $blocks The current set of blocks |
displayBlock($name, array $context, array $blocks = array() X-Ref |
Displays a block. This method is for internal use only and should never be called directly. param: string $name The block name to display param: array $context The context param: array $blocks The current set of blocks param: bool $useBlocks Whether to use the current set of blocks |
renderParentBlock($name, array $context, array $blocks = array() X-Ref |
Renders a parent block. This method is for internal use only and should never be called directly. param: string $name The block name to render from the parent param: array $context The context param: array $blocks The current set of blocks return: string The rendered block |
renderBlock($name, array $context, array $blocks = array() X-Ref |
Renders a block. This method is for internal use only and should never be called directly. param: string $name The block name to render param: array $context The context param: array $blocks The current set of blocks param: bool $useBlocks Whether to use the current set of blocks return: string The rendered block |
hasBlock($name) X-Ref |
Returns whether a block exists or not. This method is for internal use only and should never be called directly. This method does only return blocks defined in the current template or defined in "used" traits. It does not return blocks from parent templates as the parent template name can be dynamic, which is only known based on the current context. param: string $name The block name return: bool true if the block exists, false otherwise |
getBlockNames() X-Ref |
Returns all block names. This method is for internal use only and should never be called directly. return: array An array of block names |
loadTemplate($template, $templateName = null, $line = null, $index = null) X-Ref |
No description |
getBlocks() X-Ref |
Returns all blocks. This method is for internal use only and should never be called directly. return: array An array of blocks |
getSource() X-Ref |
Returns the template source code. return: string|null The template source code or null if it is not available |
display(array $context, array $blocks = array() X-Ref |
{@inheritdoc} |
render(array $context) X-Ref |
{@inheritdoc} |
displayWithErrorHandling(array $context, array $blocks = array() X-Ref |
No description |
getContext($context, $item, $ignoreStrictCheck = false) X-Ref |
Returns a variable from the context. This method is for internal use only and should never be called directly. This method should not be overridden in a sub-class as this is an implementation detail that has been introduced to optimize variable access for versions of PHP before 5.4. This is not a way to override the way to get a variable value. param: array $context The context param: string $item The variable to return from the context param: bool $ignoreStrictCheck Whether to ignore the strict variable check or not return: mixed The content of the context variable |
getAttribute($object, $item, array $arguments = array() X-Ref |
Returns the attribute value for a given array/object. param: mixed $object The object or array from where to get the item param: mixed $item The item to get from the array or object param: array $arguments An array of arguments to pass if the item is an object method param: string $type The type of attribute (@see Twig_Template constants) param: bool $isDefinedTest Whether this is only a defined check param: bool $ignoreStrictCheck Whether to ignore the strict attribute check or not return: mixed The attribute value, or a Boolean when $isDefinedTest is true, or null when the attribute is not set and $ignoreStrictCheck is true |
Generated: Thu Jan 11 00:25:41 2018 | Cross-referenced by PHPXref 0.7.1 |