Summary
- File
- Package hierarchy IO\Template
- Class hierarchy \TemplateFunctions
__construct()
| None found |
resources( $resources)
| $resources |
| None found |
add_language_maps(array $lang)
| array | $lang |
| None found |
i18n( $key, array $parameters = null)
| $key | ||
| array | $parameters |
| None found |
i18njs( $key, array $parameters = null)
| $key | ||
| array | $parameters |
| None found |
i18njsraw( $key, array $parameters = null)
| $key | ||
| array | $parameters |
| None found |
i18nraw( $key, array $parameters = null)
| $key | ||
| array | $parameters |
| None found |
escape( $string) : string
applies htmlspecialchars php function to the given string
| $string | A String |
the string without html special chars
| None found |
html( $string)
| $string |
| None found |
escapejs(string $string, string $add_quotes = true) : string
Exports a variable to be used in a javascript script.
| string | $string | A PHP string to convert to a JS one |
| string | $add_quotes | If true, returned string will be bounded by quotes |
The js equivalent string
| None found |
escapejscharacters(string $string) : string
Escape characters for use javascript script.
| string | $string | string for conversion |
String escaped
| None found |
set( $string, array $parameters)
| $string | ||
| array | $parameters |
| None found |
relative_url(\Url $url)
| \Url | $url |
| None found |
absolute_url(\Url $url)
| \Url | $url |
| None found |
add_resource( $resource)
| $resource |
| None found |