[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/twig/twig/src/ -> Template.php (summary)

Default base class for compiled templates. This class is an implementation detail of how template compilation currently works, which might change. It should never be used directly. Use $twig->load() instead, which returns an instance of \Twig\TemplateWrapper.

Author: Fabien Potencier <fabien@symfony.com>
File Size: 733 lines (26 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 23 functions

  __construct()
  __toString()
  getDebugInfo()
  getSource()
  getSourceContext()
  getEnvironment()
  getParent()
  doGetParent()
  isTraitable()
  displayParentBlock()
  displayBlock()
  renderParentBlock()
  renderBlock()
  hasBlock()
  getBlockNames()
  loadTemplate()
  unwrap()
  getBlocks()
  display()
  render()
  displayWithErrorHandling()
  getContext()
  getAttribute()

Functions
Functions that are not part of a class:

__construct(Environment $env)   X-Ref


__toString()   X-Ref


getDebugInfo()   X-Ref
Returns debug information about the template.

return: array Debug information

getSource()   X-Ref
Returns the template source code.

return: string The template source code

getSourceContext()   X-Ref
Returns information about the original template source code.

return: Source

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|TemplateWrapper|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 = [])   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 = [], $useBlocks = true)   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 = [])   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 = [], $useBlocks = true)   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, array $context = null, array $blocks = [])   X-Ref
Returns whether a block exists or not in the current context of the template.

This method checks blocks defined in the current template
or defined in "used" traits or defined in parent templates.

param: string $name    The block name
param: array  $context The context
param: array  $blocks  The current set of blocks
return: bool true if the block exists, false otherwise

getBlockNames(array $context = null, array $blocks = [])   X-Ref
Returns all block names in the current context of the template.

This method checks blocks defined in the current template
or defined in "used" traits or defined in parent templates.

param: array $context The context
param: array $blocks  The current set of blocks
return: array An array of block names

loadTemplate($template, $templateName = null, $line = null, $index = null)   X-Ref

return: Template|TemplateWrapper

unwrap()   X-Ref

return: Template

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

display(array $context, array $blocks = [])   X-Ref
No description

render(array $context)   X-Ref
No description

displayWithErrorHandling(array $context, array $blocks = [])   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 = [], $type = self::ANY_CALL, $isDefinedTest = false, $ignoreStrictCheck = false)   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: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1