...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/integration/documentgenerator/productloader.php
- Класс: Bitrix\Crm\Integration\DocumentGenerator\ProductLoader
- Вызов: ProductLoader::loadIblockValues
protected function loadIblockValues(): void { if ($this->iblockValues !== null) { return; } $this->iblockValues = []; $iblockElementIds = array_merge($this->getProductIds(), $this->getOfferIds()); if (empty($iblockElementIds)) { return; } $iterator = $this->elementTableClass::getList([ 'select' => ['ID', 'NAME', 'DETAIL_TEXT', 'PREVIEW_PICTURE', 'DETAIL_PICTURE', 'IBLOCK_SECTION.NAME'], 'filter' => [ '@ID' => $iblockElementIds, ], ]); while($data = $iterator->fetch()) { $this->iblockValues[(int)$data['ID']] = [ 'NAME' => $data['NAME'], 'DESCRIPTION' => $data['DETAIL_TEXT'], 'PREVIEW_PICTURE' => (int)$data['PREVIEW_PICTURE'], 'DETAIL_PICTURE' => (int)$data['DETAIL_PICTURE'], 'SECTION' => $data['IBLOCK_ELEMENT_IBLOCK_SECTION_NAME'], ]; } }