...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
- Класс: \CCrmTimelineCommentRestProxy
- Вызов: CCrmTimelineCommentRestProxy::prepareGetResult
private function prepareGetResult(array $comment, $select = null) { $result = []; $resultFieldNames = ['ID', 'ENTITY_ID', 'ENTITY_TYPE', 'CREATED', 'COMMENT', 'AUTHOR_ID']; if (!empty($select) && is_array($select)) { $resultFieldNames = array_intersect($resultFieldNames, $select); } foreach ($resultFieldNames as $fieldName) { $result[$fieldName] = $comment[$fieldName]; } if ($comment['SETTINGS']['HAS_FILES'] === 'Y') { if (Main\Config\Option::get('disk', 'successfully_converted', false) && Main\ModuleManager::isModuleInstalled('disk') ) { $result['FILES'] = []; $fileUFField = $GLOBALS['USER_FIELD_MANAGER']->GetUserFields(\Bitrix\Crm\Timeline\CommentController::UF_FIELD_NAME, $comment['ID']); $files = $fileUFField[\Bitrix\Crm\Timeline\CommentController::UF_COMMENT_FILE_NAME]; if (!empty($files) && is_array($files['VALUE'])) { $result['FILES'] = $files['VALUE']; } } } return $result; }