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

This function compiles language specific text into the template for quick access.

The first argument must be a literal that represents the phrase name.

Additional arguments should be passed in as "name=value", where name is a literal and value can be anything. These will then be inserted into the phrase at the named positions.

package XenForo_Template

 Methods

Compiles the phrase 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 (should have at least 1)

$options

array

Compilation options

Returns

string

_replaceParam()

_replaceParam(array $match) 

Parameters

$match

 Properties

 

$_params

$_params