PHPXMLRPC-EXTRAS

XmlrpcSmartyTemplate
in package
implements TemplateEngineInterface, TemplateInterface

Dumb (dumb dumb) smarty-like template system

Tags
todo

introduce support for multilanguage directly here

todo

introduce support for nested arrays, so we can coalesce templates

Table of Contents

Interfaces

TemplateEngineInterface
TemplateInterface

Properties

$template  : mixed
$templates  : mixed

Methods

__construct()  : mixed
load()  : $this
render()  : string
setTemplate()  : void
setTemplates()  : void

Properties

Methods

__construct()

public __construct(string $template) : mixed
Parameters
$template : string

load()

public load(string $templateName) : $this
Parameters
$templateName : string
Return values
$this

render()

public render([array<string|int, mixed> $params = array() ]) : string
Parameters
$params : array<string|int, mixed> = array()
Return values
string

setTemplate()

public static setTemplate(string $templateName, string $templateString) : void
Parameters
$templateName : string
$templateString : string

setTemplates()

public static setTemplates(array<string|int, string> $templateArray) : void
Parameters
$templateArray : array<string|int, string>

        
On this page

Search results