Symfony\Bundle\FrameworkBundle\Templating\PhpEngine
This engine knows how to render Symfony templates.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class PhpEngine
extends PhpEngine
implements
EngineInterface
{
- // members
- protected $container;
- // Inherited members from PhpEngine
- protected $loader;
- protected $current;
- protected $helpers;
- protected $parents;
- protected $stack;
- protected $charset;
- protected $cache;
- protected $escapers;
- protected $escaperCache;
- protected $globals;
- protected $parser;
- // methods
- public void __construct()
- public void get()
- public void setHelpers()
- public Response renderResponse()
- // Inherited methods from PhpEngine
- public void __construct()
- public string render()
- public Boolean exists()
- public Boolean supports()
- protected string|false evaluate()
- public HelperInterface offsetGet()
- public Boolean offsetExists()
- public void offsetSet()
- public void offsetUnset()
- public void addHelpers()
- public void setHelpers()
- public void set()
- public Boolean has()
- public HelperInterface get()
- public void extend()
- public string escape()
- public void setCharset()
- public string getCharset()
- public void setEscaper()
- public mixed getEscaper()
- public void addGlobal()
- public array getGlobals()
- protected void initializeEscapers()
- public string convertEncoding()
- public LoaderInterface getLoader()
- protected Storage load()
Hierarchy
Extends
Extended by
Implements
Members
protected
- $cache
- $charset
- $container
- $current
- $escaperCache
- $escapers
- $globals
- $helpers
- $loader
- $parents
- $parser
- $stack
Methods
public
- __construct() — Constructor.
- get()
- renderResponse() — Renders a view and returns a Response.
- setHelpers() — {@inheritdoc}
Inherited from Symfony\Component\Templating\PhpEngine
protected
- evaluate() — Evaluates a template.
- initializeEscapers() — Initializes the built-in escapers.
- load() — Loads the given template.
public
- addGlobal()
- addHelpers() — Adds some helpers.
- convertEncoding() — Convert a string from one encoding to another.
- escape() — Escapes a string by using the current charset.
- exists() — Returns true if the template exists.
- extend() — Decorates the current template with another one.
- get() — Gets a helper value.
- getCharset() — Gets the current charset.
- getEscaper() — Gets an escaper for a given context.
- getGlobals() — Returns the assigned globals.
- getLoader() — Gets the loader associated with this engine.
- has() — Returns true if the helper if defined.
- offsetExists() — Returns true if the helper is defined.
- offsetGet() — Gets a helper value.
- offsetSet() — Sets a helper.
- offsetUnset() — Removes a helper.
- render() — Renders a template.
- set() — Sets a helper.
- setCharset() — Sets the charset to use.
- setEscaper() — Adds an escaper for the given context.
- setHelpers() — Sets the helpers.
- supports() — Returns true if this class is able to render the given template.