Methods summary
public
|
|
public
|
|
public
|
|
public
|
#
i18n( $key, array $parameters = null )
|
public
|
#
i18njs( $key, array $parameters = null )
|
public
|
|
public
|
#
i18nraw( $key, array $parameters = null )
|
public
string
|
#
escape( $string )
applies htmlspecialchars php function to the given string
applies htmlspecialchars php function to the given string
Parameters
Returns
string the string without html special chars
|
public
|
|
public
string
|
#
escapejs( string $string, string $add_quotes = true )
Exports a variable to be used in a javascript script.
Exports a variable to be used in a javascript script.
Parameters
- $string
- A PHP string to convert to a JS one
- $add_quotes
- If true, returned string will be bounded by quotes
Returns
string The js equivalent string
|
public
string
|
#
escapejscharacters( string $string )
Escape characters for use javascript script.
Escape characters for use javascript script.
Parameters
- $string
- string for conversion
Returns
string String escaped
|
public
|
#
set( $string, array $parameters )
|
public
|
|
public
|
|