Метод restoreAuthor

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

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

Путь к исходному файлу строки 4044–4071
~/bitrix/modulesim/lib/V2/Chat.php

Исходный код

PHP
private

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

private function restoreAuthor(int $authorId): void

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

Описание

A deletion that takes the author out hands the chat to a stand-in, and the restoration returns an ordinary member, so a chat whose owner the structure still holds would keep an owner nobody chose. Only the hand-over is undone, and only while the chat is still where it left it: an owner chosen meanwhile - by an owner change, or by the agent that reassigns the chats of a fired employee - is a decision of its own. The condition travels with the write because none of those paths locks. The stand-in keeps the manager flag: nothing here can tell a granted flag from a borrowed one.

Параметры

1
Имя Тип По умолчанию Флаги
$authorId int -
-