class Template
Light template mechanism
author | Jan Lengowski <Jan.Lengowski@4fb.de> |
---|---|
copyright | four for business |
author | Stefan Jelner (Optimizations) |
version | 1.0 |
Template($tags) : void
generate($template, $return, $note) : string
(do translations sequentially to save memory!!!)
string/file Template
bool Return or print template
bool Echo "Generated by ... " Comment
string
complete Template stringnext() : void
replacei18n($template, $functionName)
Replaces a named function with the translated variant
string Contents of the template to translate (it is reference to save memory!!!)
string Name of the translation function (e.g. i18n)
reset() : void
set($which, $needle, $replacement) : void
With this method you can replace the placeholders in the static templates with dynamic data.
String 's' for Static or else dynamic
String Placeholder
String Replacement String
setDomain($sDomain) : \none
Sets the gettext domain to use for translations in a template
string Sets the domain to use for template translations
\none
setEncoding($encoding)
string Encoding to set
$Dyn_needles : array
$Dyn_replacements : array
$_sDomain : string
$db : object
$dyn_cnt : int
$needles : array
$replacements : array