eZPublishCommunityProject  2013.5
eZ\Publish\Core\MVC\Legacy\Templating\LegacyEngine Class Reference
+ Inheritance diagram for eZ\Publish\Core\MVC\Legacy\Templating\LegacyEngine:
+ Collaboration diagram for eZ\Publish\Core\MVC\Legacy\Templating\LegacyEngine:

Public Member Functions

 __construct (\Closure $legacyKernelClosure, MultipleObjectConverter $objectConverter)
 
 exists ($name)
 Returns true if the template exists. More...
 
 render ($name, array $parameters=array())
 Renders a template. More...
 
 supports ($name)
 Returns true if this class is able to render the given template. More...
 

Public Attributes

const SUPPORTED_SUFFIX = '.tpl'
 

Protected Member Functions

 getLegacyKernel ()
 

Private Attributes

 $legacyKernelClosure
 
 $objectConverter
 
 $supportedTemplates
 

Constructor & Destructor Documentation

eZ\Publish\Core\MVC\Legacy\Templating\LegacyEngine::__construct ( \Closure  $legacyKernelClosure,
MultipleObjectConverter  $objectConverter 
)

Member Function Documentation

eZ\Publish\Core\MVC\Legacy\Templating\LegacyEngine::exists (   $name)

Returns true if the template exists.

Parameters
mixed$nameA template name or a TemplateReferenceInterface instance
Returns
bool true if the template exists, false otherwise
eZ\Publish\Core\MVC\Legacy\Templating\LegacyEngine::getLegacyKernel ( )
protected
eZ\Publish\Core\MVC\Legacy\Templating\LegacyEngine::render (   $name,
array  $parameters = array() 
)

Renders a template.

Parameters
mixed$nameA template name or a TemplateReferenceInterface instance
array$parametersAn array of parameters to pass to the template
Returns
string The evaluated template as a string
Exceptions
\RuntimeExceptionif the template cannot be rendered
eZ\Publish\Core\MVC\Legacy\Templating\LegacyEngine::supports (   $name)

Returns true if this class is able to render the given template.

Parameters
mixed$nameA template name
Returns
bool true if this class supports the given template, false otherwise

Member Data Documentation

eZ\Publish\Core\MVC\Legacy\Templating\LegacyEngine::$legacyKernelClosure
private
eZ\Publish\Core\MVC\Legacy\Templating\LegacyEngine::$objectConverter
private
eZ\Publish\Core\MVC\Legacy\Templating\LegacyEngine::$supportedTemplates
private
const eZ\Publish\Core\MVC\Legacy\Templating\LegacyEngine::SUPPORTED_SUFFIX = '.tpl'

The documentation for this class was generated from the following file: