Class

StringTemplateLoader

Package: IO\Template\loader Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Benoit SAUTEL ben.popeye@phpboost.com Version: PHPBoost 5.2 - last update: 2014 12 22 Since: PHPBoost 3.0 - 2010 02 06 Located at: io/template/loader/StringTemplateLoader.class.php

This loader is a very simple one. Its input is a string containing the template source. It doesn't supports caching so it always parses the input source.

StringTemplateLoader implements TemplateLoader
Methods summary
public static
# __static( )
public
# __construct( string $content )

Constructs the StringTemplateLoader from the input source.

public string
# load( )

Loads the template.

public boolean
# supports_caching( )

Tells whether the loader supports caching. If it supports it, its StringTemplateLoader::get_cache_file_path() will have to return a non-empty value.

public string
# get_cache_file_path( )

Returns the path of the cache file that can be directly executed by the include PHP instruction. This method must be called only if the loader supports caching, the StringTemplateLoader::supports_caching() enabled you to know that.

Annonces