Bitrix API

NodeFunction extends NodeBase

Class NodeFunction Represents a function call in the formula.

Table of Contents

Methods

__construct()  : mixed
Initialize function object.
addParameter()  : void
Adds new parameters to the function call.
process()  : string
Uses Functions\Fabric to get an instance of the function object by it's name.

Methods

__construct()

Initialize function object.

public __construct([string $functionName = "" ]) : mixed
Parameters
$functionName : string = ""

Name of the function. Case insensitive.

addParameter()

Adds new parameters to the function call.

public addParameter(NodeBase $parameter) : void
Parameters
$parameter : NodeBase

A new parameter to be added.

process()

Uses Functions\Fabric to get an instance of the function object by it's name.

public process(Base $entity) : string

On success calls onPrepareParameters, then calculate method. Otherwise returns an empty string.

Parameters
$entity : Base

Sets the context of processing.

Return values
string

        
On this page

Search results