Метод preload
Сигнатура метода
public function preload(int $userId, array $activityIds): void
Возвращает:
void
Описание
Reads what the checks over these activities will need, in a number of queries that does not grow with the number of activities: the bindings, the owner columns of the activities left without a binding, and the permission attributes of every object involved. What is already known is not read again, so preloading twice costs one query set, and preloading a set that is already covered costs nothing.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$userId
|
int
|
—
|
—
|
$activityIds
|
array
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/V2/Internal/Access/Activity/BindingAttributeLoader.php
Расположение метода в файле
Строки
70–81