Метод createResponsibleCondition

private static

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

private static function createResponsibleCondition(string $field, string $operator, mixed $value): ConditionTree

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

Описание

The users of a form, from the two sources the answer assembles the section out of: the legacy column of the form's own row and the queue of the responsible. The queue is read by an uncorrelated subquery rather than joined - it allows one user more than once in one form, and a join would answer such a form as several rows, which breaks both the page and the batch read of the sections. One subquery is one pass over the queue, and the number of them is what the filter decides, so two conditions that would build the same subquery build it once ({@see self::mergeKeyOf()}) and a user named twice inside one condition is named once in the statement ({@see self::requireUserIds()}). The check over the legacy column asks whether the column holds a value before comparing it, so that the whole condition answers either true or false and nothing else. The column is nullable and carries no value in the forms of a portal today: a comparison alone would answer such a row with neither, and a group that negates this condition would answer it with neither as well - dropping a form that belongs to the page of "not this user" out of it.

Параметры

3
Имя Тип По умолчанию Флаги
$field string —
—
$operator string —
—
$value mixed —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Repository/WebForm/FormRepository.php
Расположение метода в файле
Строки 618–640

Исходный код

PHP