Class

StringTemplate

Package: IO\Template Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Benoit SAUTEL ben.popeye@phpboost.com Version: PHPBoost 5.2 - last update: 2016 10 28 Since: PHPBoost 3.0 - 2010 02 06 Contributor: Julien BRISWALTER j1.seth@phpboost.com Contributor: Arnaud GENET elenwii@phpboost.com Located at: io/template/StringTemplate.class.php

This class enables you to handle a template whose input is not a file but directly a string. To be always as efficient as possible, it uses cache if it evaluates that it could be faster. But when string templates are cached, they are saved on the filesystem and use some disk space. It's the reason why there is an option enabling to forbid it to cache a template if you think that it's not required to have a big efficiency. It will be the case for instance when you know that a string template will be used only once a month.

AbstractTemplate implements Template
Extended by StringTemplate
Methods summary
public
# __construct( string $content, boolean $use_cache = self::USE_CACHE_IF_FASTER, boolean $auto_load_vars,… )

Constructs a StringTemplate

Constants summary
boolean DONT_USE_CACHE
# false
boolean USE_CACHE_IF_FASTER
# true
Properties inherited from AbstractTemplate
$data, $loader, $renderer
Annonces