Метод forgetActivity
Сигнатура метода
public function forgetActivity(int $activityId): void
Возвращает:
void
Описание
Forgets what is known about this activity - every decision about it, its bindings and its row. The bindings of an activity are what the rights over it are derived from, so a change to them within a hit invalidates all three. They are not the only input, though: reading is granted to the responsible person as well, and that is a column of the row - so the write of the row invalidates the three too, and an activity that changed hands without changing its bindings would otherwise keep the decisions taken about the person it was on before. This is the one way to invalidate any of them (open question Q-4), and it has three callers, every one of them a step of a pipeline writing something a decision is derived from: the one saving the bindings, the one writing the row, and the one erasing the activity, which takes both inputs away at once. No storage boundary knows anything about rights, on purpose.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$activityId
|
int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Internal/Access/Activity/ActivityAccess.php