Метод resolveAuthorUserId

protected

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

protected function resolveAuthorUserId(): int

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

Описание

Resolves the author for a history record / relation when the caller passed no explicit user: the explicitly set context user when present; otherwise, in interactive scopes, the ambient current user (the actor of a manual entry); otherwise the portal system user. The author is never derived from the related entity, and the ambient hit user is never trusted in background, automation or AI scopes (Mantis 184341).

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/classes/general/crm_event.php
Расположение метода в файле
Строки 48–68

Исходный код

PHP