- Модуль: iblock
- Путь к файлу: ~/bitrix/modules/iblock/classes/general/iblocksection.php
- Класс: CAllIBlockSection
- Вызов: CAllIBlockSection::checkLoadElements
static function checkLoadElements(array $filter): bool
{
$result = true;
if (!empty($filter))
{
$blackList = [
'GLOBAL_ACTIVE' => true,
'DEPTH_LEVEL' => true,
'SOCNET_GROUP_ID' => true,
'RIGHT_MARGIN' => true,
'LEFT_MARGIN' => true,
'LEFT_BORDER' => true,
'RIGHT_BORDER' => true,
'HAS_ELEMENT' => true,
];
foreach($filter as $index => $value)
{
$op = CIBlock::MkOperationFilter($index);
if (isset($blackList[$op['FIELD']]))
{
$result = false;
break;
}
}
unset($op);
}
return $result;
}