Class

TemplateFunctions

Package: IO\Template Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Loic ROUCHON horn@phpboost.com Version: PHPBoost 5.2 - last update: 2014 12 22 Since: PHPBoost 3.0 - 2010 09 11 Located at: io/template/TemplateFunctions.class.php
Methods summary
public
public
# resources( $resources )
public
# add_language_maps( array $lang )
public
# i18n( $key, array $parameters = null )
public
# i18njs( $key, array $parameters = null )
public
# i18njsraw( $key, array $parameters = null )
public
# i18nraw( $key, array $parameters = null )
public string
# escape( $string )

applies htmlspecialchars php function to the given string

public
# html( $string )
public string
# escapejs( string $string, string $add_quotes = true )

Exports a variable to be used in a javascript script.

public string
# escapejscharacters( string $string )

Escape characters for use javascript script.

public
# set( $string, array $parameters )
public
# relative_url( Url $url )
public
# absolute_url( Url $url )