...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_deal.php
- Класс: \CAllCrmDeal
- Вызов: CAllCrmDeal::SaveProductRows
static function SaveProductRows($ID, $arRows, $checkPerms = true, $regEvent = true, $syncOwner = true) { global $APPLICATION; /** * @var CMain $APPLICATION */ $events = GetModuleEvents('crm', 'OnBeforeCrmDealProductRowsSave'); while ($event = $events->Fetch()) { $eventResult = ExecuteModuleEventEx($event, array($ID, $arRows)); if ($eventResult instanceof \Bitrix\Main\Result) { $error = join(', ', $eventResult->getErrorMessages()); if ($error) { $APPLICATION->ThrowException($error); return false; } } elseif ($eventResult === false) { return false; } } $result = CCrmProductRow::SaveRows('D', $ID, $arRows, null, $checkPerms, $regEvent, $syncOwner); if($result) { $events = GetModuleEvents('crm', 'OnAfterCrmDealProductRowsSave'); while ($event = $events->Fetch()) { ExecuteModuleEventEx($event, array($ID, $arRows)); } } return $result; }