Bitrix API

Fabric

Class Fabric Provides function object instance by it's name.

Has some builtin function such as: upper, lower, concat and limit. Fires event OnTemplateGetFunctionClass. Handler of the event has to return acclass name not an instance.

Table of Contents

Methods

createInstance()  : FunctionBase
Instantiates an function object by function name.

Methods

createInstance()

Instantiates an function object by function name.

public static createInstance(string $functionName[, mixed $data = null ]) : FunctionBase
Parameters
$functionName : string

Name of the function in the lower case.

$data : mixed = null

Additional data for function instance.

Return values
FunctionBase

        
On this page

Search results