Метод setOccurAsId
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
146–157
~/bitrix/modulestasks/lib/util/user.php
Исходный код
Сигнатура метода
public static function setOccurAsId($userId = 0)
Описание
Set user id that will figure in all logs and notifications as the user performed an action. This allows to create task task under admin id and put to log someone else. In general, this is a hacky function, so it could be set deprecated in future as architecture changes.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$userId
|
-
|
0
|
-
|