Метод getEntityFields

public

Сигнатура метода

public function getEntityFields(?array $entityNames = null): array

Возвращает: array

Описание

Returns every CRM field a form may be built of, the synthetic groups of the catalogue and of the activity included: they carry the product and the activity fields, which belong to no entity of their own and would be lost with the groups. Naming the entities narrows the read to them, and the names travel down to the provider, which drops the rest of the map before it builds a field of them. That is where the cost of the dictionary is: on a portal of hundreds of smart processes the whole of it takes seconds, and four entities take milliseconds. The performance gate measured that cost: about 2056 fields, ~4.5 s and ~96 MB for a call without a filter against ~1.15 s and 64 MB for a call naming an entity, and nothing is cached between calls. The method publishes no page at all - a decision of the ADR of the family - so naming the entities lowers the cost of a call but does not stand in for a page. The provider keeps the three synthetic groups whatever it is asked for, so they are dropped here instead: a caller asking for the fields of one entity is answered the fields of that one.

Параметры

1
Имя Тип По умолчанию Флаги
$entityNames ?array null
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Repository/WebForm/FormDictionaryRepository.php
Расположение метода в файле
Строки 104–128

Исходный код

PHP