• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/internals/deletionnotifymanager.php
  • Класс: BitrixDiskInternalsDeletionNotifyManager
  • Вызов: DeletionNotifyManager::put
public function put(BaseObject $object, int $deletedBy): void
{
	//author can delete object without notification
	if ($object->getCreatedBy() && ($object->getCreatedBy() == $deletedBy))
	{
		return;
	}

	$storage = $object->getStorage();
	//we notify only when file belongs to user (not group and not common disk)
	if (!$storage || !($storage->getProxyType() instanceof ProxyTypeUser))
	{
		return;
	}

	$this->map[$object->getParentId() . "-{$object->getCreatedBy()}"][] = [
		$deletedBy,
		$object->getCreatedBy(),
		$object->getId(),
		$object->getName(),
		$object instanceof Folder,
	];

	if ($object instanceof Folder)
	{
		unset($this->map[$object->getId() . "-{$object->getCreatedBy()}"]);
	}
}