Метод assertReferencedViewsOwned
Сигнатура метода
public function assertReferencedViewsOwned(array $definition, ?int $ownerTemplateId): void
Возвращает:
void
Описание
A view that reads template-scoped sources materializes that template's data into its result storage, so a definition written for another template must not read that storage either. Like {@see ColumnResolver::assertTemplateSourcesOwned()} the rule needs the owner, which the definition does not carry, so the boundary holding it calls this on its own. Checking the directly referenced views is enough: the same rule keeps every stored view free of a foreign template's data, so a referenced view can only carry its own owner's.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$definition
|
array
|
—
|
—
|
$ownerTemplateId
|
?int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesbizproc/lib/Internal/Service/DataView/DataViewValidator.php