本文整理匯總了PHP中CCrmCompany::GetFieldCaption方法的典型用法代碼示例。如果您正苦於以下問題:PHP CCrmCompany::GetFieldCaption方法的具體用法?PHP CCrmCompany::GetFieldCaption怎麽用?PHP CCrmCompany::GetFieldCaption使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CCrmCompany
的用法示例。
在下文中一共展示了CCrmCompany::GetFieldCaption方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: elseif
} elseif ($k === 'ASSIGNED_BY_ID') {
$entityData['ASSIGNED_BY_ID'] = __CrmQuickPanelViewPrepareResponsible($entityFields, $userProfilePath, $nameTemplate, $enableInstantEdit, $arResult['INSTANT_EDITOR_ID'], $arResult['SERVICE_URL']);
} elseif ($k === 'COMMENTS') {
$entityData[$k] = array('type' => 'html', 'editable' => $enableInstantEdit, 'data' => array('html' => $entityFields["~{$k}"], 'serviceUrl' => $arResult['SERVICE_URL']));
} elseif ($k === 'ADDRESS') {
$entityData[$k] = array('type' => 'address', 'editable' => false, 'data' => array('lines' => CompanyAddressFormatter::prepareLines($entityFields, array('TYPE_ID' => EntityAddress::Primary, 'NL2BR' => true))));
} elseif ($k === 'ADDRESS_LEGAL' || $k === 'REG_ADDRESS') {
$entityData[$k] = array('type' => 'address', 'editable' => false, 'data' => array('lines' => CompanyAddressFormatter::prepareLines($entityFields, array('TYPE_ID' => EntityAddress::Registered, 'NL2BR' => true))));
} elseif ($k === 'BANKING_DETAILS') {
$entityData[$k] = array('type' => 'text', 'editable' => $enableInstantEdit, 'data' => array('text' => $entityFields["~{$k}"], 'multiline' => true));
} else {
$entityData[$k] = array('type' => 'text', 'editable' => $enableInstantEdit, 'data' => array('text' => $entityFields["~{$k}"]));
}
$caption = isset($formFieldNames[$k]) ? $formFieldNames[$k] : '';
if ($caption === '') {
$caption = CCrmCompany::GetFieldCaption($k);
}
$entityData[$k]['caption'] = $caption;
}
if (isset($entityFields['~LOGO'])) {
$fileInfo = $file->ResizeImageGet($entityFields['~LOGO'], array('width' => 79, 'height' => 33), BX_RESIZE_IMAGE_PROPORTIONAL_ALT);
$arResult['HEAD_IMAGE_URL'] = isset($fileInfo['src']) ? $fileInfo['src'] : $defaultCompanyLogoUrl;
} else {
$arResult['HEAD_IMAGE_URL'] = $defaultCompanyLogoUrl;
}
$arResult['HEAD_TITLE'] = isset($entityFields['TITLE']) ? $entityFields['TITLE'] : '';
$arResult['HEAD_TITLE_FIELD_ID'] = 'TITLE';
} elseif ($entityTypeID === CCrmOwnerType::Deal) {
if ($enableDefaultConfig) {
$config['left'] = 'TYPE_ID,OPPORTUNITY,CURRENCY_ID,PROBABILITY';
$config['center'] = 'CONTACT_ID,COMPANY_ID';