...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_bizproc_helper.php
- Класс: \CCrmBizProcHelper
- Вызов: CCrmBizProcHelper::ResolveDocumentName
static function ResolveDocumentName($ownerTypeID) { $ownerTypeID = intval($ownerTypeID); $docName = ''; if($ownerTypeID === CCrmOwnerType::Contact) { $docName = 'CCrmDocumentContact'; } elseif($ownerTypeID === CCrmOwnerType::Company) { $docName = 'CCrmDocumentCompany'; } elseif($ownerTypeID === CCrmOwnerType::Lead) { $docName = 'CCrmDocumentLead'; } elseif($ownerTypeID === CCrmOwnerType::Deal) { $docName = 'CCrmDocumentDeal'; } elseif($ownerTypeID === CCrmOwnerType::Order) { $docName = \Bitrix\Crm\Integration\BizProc\Document\Order::class; } elseif($ownerTypeID === CCrmOwnerType::Invoice) { $docName = \Bitrix\Crm\Integration\BizProc\Document\Invoice::class; } elseif($ownerTypeID === CCrmOwnerType::OrderShipment) { $docName = \Bitrix\Crm\Integration\BizProc\Document\Shipment::class; } elseif ($ownerTypeID === CCrmOwnerType::Quote) { $docName = \Bitrix\Crm\Integration\BizProc\Document\Quote::class; } elseif ($ownerTypeID === CCrmOwnerType::SmartInvoice) { $docName = \Bitrix\Crm\Integration\BizProc\Document\SmartInvoice::class; } elseif ($ownerTypeID === CCrmOwnerType::SmartDocument) { $docName = \Bitrix\Crm\Integration\BizProc\Document\SmartDocument::class; } elseif(CCrmOwnerType::isPossibleDynamicTypeId($ownerTypeID)) { $docName = \Bitrix\Crm\Integration\BizProc\Document\Dynamic::class; } return $docName; }