Метод writesUserFieldsAsAuthor

public static

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

public static function writesUserFieldsAsAuthor(StorageFieldTransit $transit): bool

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

Описание

Whether the user fields of the activity are written as its author rather than as its editor (crm_activity.php:417-425). THE COLUMN IS THE ONE LEGACY READS, and it is not the provider: the branch of the user fields is gated by TYPE_ID. The model does not hold that column at all, so the answer comes off the transit, and an absent column is an answer rather than a failure - the same guarded read as a deadline ({@see DeadlineSentinelGuard::isGivenIn()}). ON AN UPDATE THIS IS A DEVIATION ON PURPOSE (ADR registry row D13-UF-EMAIL). Legacy has no email branch there and writes the user fields as an editor an email never has, so the files of a letter end up owned by nobody. V2 asks the same question in both pipelines.

Параметры

1
Имя Тип По умолчанию Флаги
$transit StorageFieldTransit —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Service/Activity/Pipeline/Step/Shared/EmailBranch.php
Расположение метода в файле
Строки 113–121

Исходный код

PHP