當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CCrmStatus::IsDepricatedTypesEnabled方法代碼示例

本文整理匯總了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']);
開發者ID:mrdeadmouse,項目名稱:u136006,代碼行數:31,代碼來源:component.php


注:本文中的CCrmStatus::IsDepricatedTypesEnabled方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。