Метод applyFormulas

private

Сигнатура метода

private function applyFormulas(array $columns, array $definition): array

Возвращает: array

Описание

A formula replaces the value the column took from its source, so whatever the source field was, the column keeps the computed result and becomes a string one. The type the value came from stays with the column: an output modifier is applied over it by {@see ValuePresenter}. Validation runs over the resolved list: a reference is a column of the same table, and only its final composition tells whether the referenced column is there at all and whether it is computed itself. The cardinality follows the value the column now holds, not the field it used to take it from: a computed expression and a reference presented through an output modifier are both a single string ({@see \CBPHelper::stringify()}, {@see \Bitrix\Bizproc\Internal\Service\DocumentField\FieldValueFormatter::format()}), while a bare reference keeps the value of the referenced column as it is, multiple included.

Параметры

2
Имя Тип По умолчанию Флаги
$columns array —
—
$definition array —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Internal/Service/DataView/ColumnResolver.php
Расположение метода в файле
Строки 193–226

Исходный код

PHP