TEMPLATE_STRING
TEMPLATE_STRING
The identifier to use for memory-only templates.
Horde Template system. Adapted from bTemplate by Brian Lozier <brian@massassi.net>.
Horde_Template provides a basic template engine with tags, loops, and if conditions. However, it is also a simple interface with several essential functions: set(), fetch(), and parse(). Subclasses or decorators can implement (or delegate) these three methods, plus the options api, and easily implement other template engines (PHP code, XSLT, etc.) without requiring usage changes.
Compilation code adapted from code written by Bruno Pedro bpedro@ptm.pt.
Copyright 2002-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
__construct(array $params = array())
Constructor.
array | $params | The following configuration options: 'basepath' - (string) The directory where templates are read from. 'cacheob' - (Horde_Cache) A caching object used to cache the output. 'logger' - (Horde_Log_Logger) A logger object. |
setOption(string $option, mixed $val)
Sets an option.
Currently available options are:
'debug' - Output debugging information to screen 'forcecompile' - Force a compilation on every page load 'gettext' - Activate gettext detectionParameters
string | $option | The option name. |
mixed | $val | The option's value. |