Renderer
Less than 1 minute
Renderer
Abstract base class for Smarty template rendering.
class RendererProvides core logic for rendering Smarty templates, managing functions, handlers, variables, and includes. Handles writing output, function calls, and template inclusion. Used internally by the Smarty template engine.
Properties
functions
public array $functionsfunctionHandlers
public array $functionHandlersvariables
public array $variablesparams
public array $paramsmodify
Modifier instance for variable transformations and filters.
public Modifier $modifyincludes
private $includesMethods
__construct
Constructs a new Renderer instance and initializes default functions and modifier.
public __construct(): voidrender
public render(array $params): stringParameters
| Parameter | Type | Description |
|---|---|---|
$params | array |
write
Writes a variable value to output, using the default parameter if null.
public write(mixed $var): voidParameters
| Parameter | Type | Description |
|---|---|---|
$var | mixed | the variable to write to output |
public (string $file, array $params, string $ldelim = '{', string $rdelim = '}'): voidParameters
| Parameter | Type | Description |
|---|---|---|
$file | string | |
$params | array | |
$ldelim | string | |
$rdelim | string |
callFunctionHandler
public callFunctionHandler(string $name, array $params): mixedParameters
| Parameter | Type | Description |
|---|---|---|
$name | string | |
$params | array |
renderContent
protected renderContent(array $params): voidParameters
| Parameter | Type | Description |
|---|---|---|
$params | array |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:24 +0000