- Модуль: catalog
- Путь к файлу: ~/bitrix/modules/catalog/lib/helpers/admin/iblockpricechanger.php
- Класс: BitrixCatalogHelpersAdminIblockPriceChanger
- Вызов: IblockPriceChanger::collectAllSectionsElements
private function collectAllSectionsElements(&$productsIdList)
{
$resultAllElementsList = CIBlockElement::GetList(
array(),
array(
"SECTION_ID"=>$productsIdList['SECTIONS'],
"IBLOCK_ID" => $this->iblockId,
"WF_PARENT_ELEMENT_ID" => NULL,
"INCLUDE_SUBSECTIONS"=>"Y",
"CHECK_PERMISSIONS" => "Y",
"MIN_PERMISSION" => "W"
),
false,
false,
array('ID'));
while ($subSectionsResult = $resultAllElementsList->Fetch())
{
$productsIdList['ELEMENTS'][] = $subSectionsResult['ID'];
}
unset($subSectionsResult, $resultAllElementsList);
unset( $productsIdList['SECTIONS'] );
}