...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_quote.php
- Класс: \CAllCrmQuote
- Вызов: CAllCrmQuote::PrepareFileEvent
static function PrepareFileEvent($storageTypeID, $elementID, $action, &$arRow, &$arEvents) { $storageTypeID = intval($storageTypeID); $elementID = intval($elementID); $action = mb_strtoupper(strval($action)); $name = isset($arRow['SUBJECT']) ? strval($arRow['SUBJECT']) : ''; if($name === '') { $name = "[{$arRow['ID']}]"; } $arEventFiles = array(); if($action === 'ADD' && $storageTypeID !== CCrmQuoteStorageType::Undefined) { $arEventFiles = self::MakeRawFiles($storageTypeID, array($elementID)); } $arEvents[] = array( 'EVENT_NAME' => GetMessage("CRM_QUOTE_FILE_{$action}"), 'EVENT_TEXT_1' => $action !== 'ADD' ? self::ResolveStorageElementName($storageTypeID, $elementID) : '', 'EVENT_TEXT_2' => '', 'FILES' => $arEventFiles ); }