Class to handle compiling template function calls for "count".

A formatted number will be output based on the number of items in the first (array) argument and the browsing user's language.

Optionally, the number of decimals to display can be passed in the second argument. This defaults to 0.

A value of 'false' for the second argument will output an unformatted integer.

Examples: {xen:count $arr} -> 1,234 {xen:count $arr, 2} -> 1,234.00 {xen:count $arr, false} -> 1234

package XenForo_Template

 Methods

Compiles the function call.

compile(\XenForo_Template_Compiler $compiler, string $function, array $arguments, array $options) : string

Parameters

$compiler

\XenForo_Template_Compiler

The invoking compiler

$function

string

Name of the function called

$arguments

array

Arguments to the function

$options

array

Compilation options

Returns

string