- Модуль: catalog
- Путь к файлу: ~/bitrix/modules/catalog/lib/component/baseform.php
- Класс: BitrixCatalogComponentBaseForm
- Вызов: BaseForm::getTableElementsWhiteList
private function getTableElementsWhiteList(): array
{
static $whiteList = null;
if ($whiteList === null)
{
$whiteList = $this->getIblockElementFieldsList();
if ($this->showCatalogProductFields())
{
$whiteList = array_merge($whiteList, $this->getCatalogProductFieldsList());
}
if ($this->showSpecificCatalogParameters())
{
$whiteList = array_merge($whiteList, $this->getSpecificCatalogFieldsList());
}
if ($this->showSubscribeCatalogParameters())
{
$whiteList = array_diff($whiteList, ['WEIGHT', 'WIDTH', 'LENGTH', 'HEIGHT']);
$whiteList = array_merge($whiteList, $this->getSubscribeCatalogFieldList());
}
$whiteList = array_fill_keys($whiteList, true);
}
return $whiteList;
}