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)
deprecated | [2012-06-07] Old constructor function for downwards compatibility |
---|
__construct($tags) : void
deprecated | Class was renamed to cTemplate |
---|
generate(string $template, bool $return, bool $note) : string
(do translations sequentially to save memory!!!)
inherited_from | \cTemplate::generate() |
---|
string
Either template string or template file path
bool
Return or print template
bool
Echo "Generated by ... " Comment
string
Complete Template stringnext() : void
inherited_from | \cTemplate::next() |
---|
replacei18n(string $template, string $functionName) : void
inherited_from | \cTemplate::replacei18n() |
---|
string
Contents of the template to translate (it is reference to save memory!!!)
string
Name of the translation function (e.g. i18n)
reset() : void
inherited_from | \cTemplate::reset() |
---|
set(string $which, string $needle, string $replacement) : void
With this method you can replace the placeholders in the static templates with dynamic data.
inherited_from | \cTemplate::set() |
---|
string
's' for Static or else dynamic
string
Placeholder
string
Replacement String
setDomain(string $sDomain) : void
inherited_from | \cTemplate::setDomain() |
---|
string
Sets the domain to use for template translations
setEncoding(string $encoding) : void
inherited_from | \cTemplate::setEncoding() |
---|
string
Encoding to set
$Dyn_needles : array
inherited_from | \cTemplate::$$Dyn_needles |
---|
$Dyn_replacements : array
inherited_from | \cTemplate::$$Dyn_replacements |
---|
$dyn_cnt : int
inherited_from | \cTemplate::$$dyn_cnt |
---|
$needles : array
inherited_from | \cTemplate::$$needles |
---|
$replacements : array
inherited_from | \cTemplate::$$replacements |
---|
$_sDomain : string
inherited_from | \cTemplate::$$_sDomain |
---|