Functions

Smarty cat modifier plugin

smarty_modifiercompiler_cat(array $params, $compiler) : string

Type: modifier
Name: cat
Date: Feb 24, 2003
Purpose: catenate a value to a variable
Input: string to catenate
Example: {$var|cat:"foo"}

link cat (Smarty online manual)
author Uwe Tews

Parameters

$params

array

parameters

$compiler

Returns

stringwith compiled code

Smarty count_characters modifier plugin

smarty_modifiercompiler_count_characters(array $params, $compiler) : string

Type: modifier
Name: count_characteres
Purpose: count the number of characters in a text

link count_characters (Smarty online manual)
author Uwe Tews

Parameters

$params

array

parameters

$compiler

Returns

stringwith compiled code

Smarty count_paragraphs modifier plugin

smarty_modifiercompiler_count_paragraphs(array $params, $compiler) : string

Type: modifier
Name: count_paragraphs
Purpose: count the number of paragraphs in a text

link count_paragraphs (Smarty online manual)
author Uwe Tews

Parameters

$params

array

parameters

$compiler

Returns

stringwith compiled code

Smarty count_sentences modifier plugin

smarty_modifiercompiler_count_sentences(array $params, $compiler) : string

Type: modifier
Name: count_sentences Purpose: count the number of sentences in a text

link count_sentences (Smarty online manual)
author Uwe Tews

Parameters

$params

array

parameters

$compiler

Returns

stringwith compiled code

Smarty count_words modifier plugin

smarty_modifiercompiler_count_words(array $params, $compiler) : string

Type: modifier
Name: count_words
Purpose: count the number of words in a text

link count_words (Smarty online manual)
author Uwe Tews

Parameters

$params

array

parameters

$compiler

Returns

stringwith compiled code

Smarty default modifier plugin

smarty_modifiercompiler_default(array $params, $compiler) : string

Type: modifier
Name: default
Purpose: designate default value for empty variables

link default (Smarty online manual)
author Uwe Tews

Parameters

$params

array

parameters

$compiler

Returns

stringwith compiled code

Smarty escape modifier plugin

smarty_modifiercompiler_escape(array $params, $compiler) : string

Type: modifier
Name: escape
Purpose: escape string for output

link count_characters (Smarty online manual)
author Rodney Rehm

Parameters

$params

array

parameters

$compiler

Returns

stringwith compiled code

Smarty from_charset modifier plugin

smarty_modifiercompiler_from_charset(array $params, $compiler) : string

Type: modifier
Name: from_charset
Purpose: convert character encoding from $charset to internal encoding

author Rodney Rehm

Parameters

$params

array

parameters

$compiler

Returns

stringwith compiled code

Smarty indent modifier plugin

smarty_modifiercompiler_indent(array $params, $compiler) : string

Type: modifier
Name: indent
Purpose: indent lines of text

link indent (Smarty online manual)
author Uwe Tews

Parameters

$params

array

parameters

$compiler

Returns

stringwith compiled code

Smarty lower modifier plugin

smarty_modifiercompiler_lower(array $params, $compiler) : string

Type: modifier
Name: lower
Purpose: convert string to lowercase

link lower (Smarty online manual)
author Monte Ohrt <monte at ohrt dot com>
author Uwe Tews

Parameters

$params

array

parameters

$compiler

Returns

stringwith compiled code

Smarty noprint modifier plugin

smarty_modifiercompiler_noprint(array $params, $compiler) : string

Type: modifier
Name: noprint
Purpose: return an empty string

author Uwe Tews

Parameters

$params

array

parameters

$compiler

Returns

stringwith compiled code

Smarty string_format modifier plugin

smarty_modifiercompiler_string_format(array $params, $compiler) : string

Type: modifier
Name: string_format
Purpose: format strings via sprintf

link string_format (Smarty online manual)
author Uwe Tews

Parameters

$params

array

parameters

$compiler

Returns

stringwith compiled code

Smarty strip modifier plugin

smarty_modifiercompiler_strip(array $params, $compiler) : string

Type: modifier
Name: strip
Purpose: Replace all repeated spaces, newlines, tabs with a single space or supplied replacement string.
Example: {$var|strip} {$var|strip:" "}
Date: September 25th, 2002

link strip (Smarty online manual)
author Uwe Tews

Parameters

$params

array

parameters

$compiler

Returns

stringwith compiled code

Smarty strip_tags modifier plugin

smarty_modifiercompiler_strip_tags(array $params, $compiler) : string

Type: modifier
Name: strip_tags
Purpose: strip html tags from text

link strip_tags (Smarty online manual)
author Uwe Tews

Parameters

$params

array

parameters

$compiler

Returns

stringwith compiled code

Smarty to_charset modifier plugin

smarty_modifiercompiler_to_charset(array $params, $compiler) : string

Type: modifier
Name: to_charset
Purpose: convert character encoding from internal encoding to $charset

author Rodney Rehm

Parameters

$params

array

parameters

$compiler

Returns

stringwith compiled code

Smarty unescape modifier plugin

smarty_modifiercompiler_unescape(array $params, $compiler) : string

Type: modifier
Name: unescape
Purpose: unescape html entities

author Rodney Rehm

Parameters

$params

array

parameters

$compiler

Returns

stringwith compiled code

Smarty upper modifier plugin

smarty_modifiercompiler_upper(array $params, $compiler) : string

Type: modifier
Name: lower
Purpose: convert string to uppercase

link lower (Smarty online manual)
author Uwe Tews

Parameters

$params

array

parameters

$compiler

Returns

stringwith compiled code

Smarty wordwrap modifier plugin

smarty_modifiercompiler_wordwrap(array $params, $compiler) : string

Type: modifier
Name: wordwrap
Purpose: wrap a string of text at a given length

link wordwrap (Smarty online manual)
author Uwe Tews

Parameters

$params

array

parameters

$compiler

Returns

stringwith compiled code