Метод preload
Сигнатура метода
public function preload(int $userId, array $activityIds): void
Возвращает:
void
Описание
Reads what the checks over these activities need, before them and in one batch: the bindings, the owners of the activities left without one, and the permission attributes of every object involved ({@see BindingAttributeLoader}), plus the rows of the activities themselves. The checks that follow read none of it again, whatever they ask about: the row is what the bypass of the responsible person compares and what the verdict of the provider is typed by, and both are served from the memory of the hit. Whoever knows its set is expected to hand it over - a pipeline over a set of activities, a reader of a list. A single check needs none of this and pays for what it reads on its own.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$userId
|
int
|
—
|
—
|
$activityIds
|
array
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Internal/Access/Activity/ActivityAccess.php