class Template
Light template mechanism
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| copyright | four for business |
| author | Stefan Jelner (Optimizations) |
| version | 1.0 |
__construct($tags) : void
generate(string $template, bool $return, bool $note) : string
(do translations sequentially to save memory!!!)
stringEither template string or template file path
boolReturn or print template
boolEcho "Generated by ... " Comment
stringComplete Template stringnext() : void
replacei18n(string $template, string $functionName) : void
stringContents of the template to translate (it is reference to save memory!!!)
stringName of the translation function (e.g. i18n)
reset() : void
set(string $which, string $needle, string $replacement) : void
With this method you can replace the placeholders in the static templates with dynamic data.
string's' for Static or else dynamic
stringPlaceholder
stringReplacement String
setDomain(string $sDomain) : void
stringSets the domain to use for template translations
setEncoding(string $encoding) : void
stringEncoding to set
$Dyn_needles : array
$Dyn_replacements : array
$dyn_cnt : int
$needles : array
$replacements : array
$_sDomain : string