Метод resolveAuthorId

protected

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

protected function resolveAuthorId(Context $context): int

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

Описание

Resolves the author for an event-history record from the context, by the same rule as the timeline author resolution: the explicitly set context user wins; the ambient current user is trusted only in interactive scopes; otherwise the record is attributed to the portal system user.

Параметры

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

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/Service/EventHistory.php
Расположение метода в файле
Строки 305–323

Исходный код

PHP