SmartyTemplateRenderer Class Reference

Renderer for Smarty templates. More...

List of all members.

Public Member Functions

 SmartyTemplateRenderer ($basetemplate=null, $directories=null, $mode=null)
 Constructor for a new SmartyTemplateRenderer instance.
 render ($mode=null, $params=null)
 Renders the current instance.


Detailed Description

Renderer for Smarty templates.

Definition at line 30 of file smartytemplaterenderer.lib.php.


Member Function Documentation

SmartyTemplateRenderer::SmartyTemplateRenderer ( basetemplate = null,
directories = null,
mode = null 
)

Constructor for a new SmartyTemplateRenderer instance.

Parameters:
$basetemplate Template name (optional, default is null)
$directories Directories to use (optional, see SmartyTemplate documentation for more information)
$mode Default render mode (optional, default is null)
See also:
SmartyTemplate

Definition at line 41 of file smartytemplaterenderer.lib.php.

SmartyTemplateRenderer::render ( mode = null,
params = null 
)

Renders the current instance.

The $mode parameter can be used to specify which render mode should be used. First, an attempt is made to use a template. If this fails, a render method is called.

Parameters:
$mode A string denoting the render mode to use (optional).
$params Additional parameters can be specified, these will be passed unchanged to the render methods.

Definition at line 80 of file smartytemplaterenderer.lib.php.


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

Generated on Sun Aug 2 22:54:38 2009 for Anewt by  doxygen 1.5.9