• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_invoice_event.php
  • Класс: \CCrmInvoiceEvent
  • Вызов: CCrmInvoiceEvent::GetRecordDescription
static function GetRecordDescription($type, $data)
{
	foreach (CCrmInvoiceEventFormat::$arOperationTypes as $typeCode => $arInfo)
	{
		if ($type == $typeCode)
		{
			if (isset($arInfo["FUNCTION"]) && is_callable(array("CCrmInvoiceEventFormat", $arInfo["FUNCTION"])))
			{
				$arResult = call_user_func_array(
					["CCrmInvoiceEventFormat", $arInfo["FUNCTION"]],
					[unserialize($data, ['allowed_classes' => ['Bitrix\Main\Type\Date', 'Bitrix\Main\Type\DateTime', 'DateTime']])]
				);
				$arResult["NAME"] = self::getName($type);
				return $arResult;
			}
		}
	}

	return false;
}