本文整理汇总了PHP中CCrmStatus::IsDepricatedTypesEnabled方法的典型用法代码示例。如果您正苦于以下问题:PHP CCrmStatus::IsDepricatedTypesEnabled方法的具体用法?PHP CCrmStatus::IsDepricatedTypesEnabled怎么用?PHP CCrmStatus::IsDepricatedTypesEnabled使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCrmStatus
的用法示例。
在下文中一共展示了CCrmStatus::IsDepricatedTypesEnabled方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$arResult['FIELDS']['tab_format'][] = array('id' => 'CALLTO_NORMALIZE_NUMBER', 'name' => GetMessage('CRM_FIELD_CALLTO_NORMALIZE_NUMBER'), 'type' => 'checkbox', 'value' => isset($calltoSettings['NORMALIZE_NUMBER']) ? $calltoSettings['NORMALIZE_NUMBER'] === 'Y' : true, 'required' => false);
$arResult['FIELDS']['tab_format'][] = array('id' => 'section_address_format', 'name' => GetMessage('CRM_SECTION_ADDRESS_FORMAT'), 'type' => 'section');
$curAddrFormatID = \Bitrix\Crm\Format\EntityAddressFormatter::getFormatID();
$addrFormatDescrs = \Bitrix\Crm\Format\EntityAddressFormatter::getAllDescriptions();
$arResult['ADDR_FORMAT_INFOS'] = \Bitrix\Crm\Format\EntityAddressFormatter::getAllExamples();
$arResult['ADDR_FORMAT_CONTROL_PREFIX'] = 'addr_format_';
$addrFormatControls = array();
foreach ($addrFormatDescrs as $addrFormatID => $addrFormatDescr) {
$isChecked = $addrFormatID === $curAddrFormatID;
$addrFormatControlID = $arResult['ADDR_FORMAT_CONTROL_PREFIX'] . $addrFormatID;
$addrFormatControls[] = '<input type="radio" class="crm-dup-control-type-radio" id="' . $addrFormatControlID . '" name="ENTITY_ADDRESS_FORMAT_ID" value="' . $addrFormatID . '"' . ($isChecked ? ' checked="checked"' : '') . '/><label class="crm-dup-control-type-label" for="' . $addrFormatControlID . '">' . htmlspecialcharsbx($addrFormatDescr) . '</label>';
}
$arResult['FIELDS']['tab_format'][] = array('id' => 'ENTITY_ADDRESS_FORMAT', 'type' => 'custom', 'value' => '<div class="crm-dup-control-type-radio-title">' . GetMessage('CRM_FIELD_ENTITY_ADDRESS_FORMAT') . ':</div>' . '<div class="crm-dup-control-type-radio-wrap">' . implode('', $addrFormatControls) . '</div>', 'colspan' => true);
$arResult['ADDR_FORMAT_DESCR_ID'] = 'addr_format_descr';
$arResult['FIELDS']['tab_format'][] = array('id' => 'ENTITY_ADDRESS_FORMAT_DESCR', 'type' => 'custom', 'value' => '<div class="crm-dup-control-type-info" id="' . $arResult['ADDR_FORMAT_DESCR_ID'] . '">' . $arResult['ADDR_FORMAT_INFOS'][$curAddrFormatID] . '</div>', 'colspan' => true);
ob_start();
$APPLICATION->IncludeComponent('bitrix:crm.config.invoice.number', '', array(), '');
$sVal = ob_get_contents();
ob_end_clean();
$arResult['FIELDS']['tab_inv_nums'][] = array('id' => 'INVOICE_NUMBERS_FORMAT', 'name' => GetMessage('CRM_INVOICE_NUMBERS_FORMAT'), 'type' => 'custom', 'colspan' => true, 'value' => $sVal, 'required' => false);
ob_start();
$APPLICATION->IncludeComponent('bitrix:crm.config.number', '', array('ENTITY_NAME' => CCrmOwnerType::QuoteName));
$sVal = ob_get_contents();
ob_end_clean();
$arResult['FIELDS']['tab_quote_nums'][] = array('id' => 'QUOTE_NUMBERS_FORMAT', 'name' => GetMessage('CRM_QUOTE_NUMBERS_FORMAT'), 'type' => 'custom', 'colspan' => true, 'value' => $sVal, 'required' => false);
$arResult['FIELDS']['tab_dup_control'][] = array('id' => 'ENABLE_LEAD_DUP_CONTROL', 'name' => GetMessage('CRM_FIELD_ENABLE_LEAD_DUP_CONTROL'), 'type' => 'checkbox', 'value' => $dupControl->isEnabledFor(CCrmOwnerType::Lead), 'required' => false);
$arResult['FIELDS']['tab_dup_control'][] = array('id' => 'ENABLE_CONTACT_DUP_CONTROL', 'name' => GetMessage('CRM_FIELD_ENABLE_CONTACT_DUP_CONTROL'), 'type' => 'checkbox', 'value' => $dupControl->isEnabledFor(CCrmOwnerType::Contact), 'required' => false);
$arResult['FIELDS']['tab_dup_control'][] = array('id' => 'ENABLE_COMPANY_DUP_CONTROL', 'name' => GetMessage('CRM_FIELD_ENABLE_COMPANY_DUP_CONTROL'), 'type' => 'checkbox', 'value' => $dupControl->isEnabledFor(CCrmOwnerType::Company), 'required' => false);
$arResult['FIELDS']['tab_status_config'][] = array('id' => 'ENABLE_DEPRECATED_STATUSES', 'name' => GetMessage('CRM_FIELD_ENABLE_DEPRECATED_STATUSES'), 'type' => 'checkbox', 'value' => CCrmStatus::IsDepricatedTypesEnabled(), 'required' => false);
$this->IncludeComponentTemplate();
$APPLICATION->AddChainItem(GetMessage('CRM_SM_LIST'), $arParams['PATH_TO_SM_CONFIG']);