本文整理匯總了PHP中CCrmContact::GetFieldCaption方法的典型用法代碼示例。如果您正苦於以下問題:PHP CCrmContact::GetFieldCaption方法的具體用法?PHP CCrmContact::GetFieldCaption怎麽用?PHP CCrmContact::GetFieldCaption使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CCrmContact
的用法示例。
在下文中一共展示了CCrmContact::GetFieldCaption方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: strtoupper
$v = $v !== null && $v !== '' ? strtoupper($v) : 'N';
$entityData[$k] = array('type' => 'boolean', 'editable' => $enableInstantEdit, 'data' => array('baseType' => 'char', 'value' => $v));
} 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' => ContactAddressFormatter::prepareLines($entityFields, array('NL2BR' => true))));
} elseif ($k === 'SOURCE_DESCRIPTION') {
$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 = CCrmContact::GetFieldCaption($k);
}
$entityData[$k]['caption'] = $caption;
}
if (isset($entityFields['~PHOTO'])) {
$fileInfo = $file->ResizeImageGet($entityFields['~PHOTO'], array('width' => 34, 'height' => 34), BX_RESIZE_IMAGE_EXACT);
$arResult['HEAD_IMAGE_URL'] = isset($fileInfo['src']) ? $fileInfo['src'] : '';
} else {
$arResult['HEAD_IMAGE_URL'] = '';
}
} elseif ($entityTypeID === CCrmOwnerType::Company) {
$entityContext['SIP_MANAGER_CONFIG'][CCrmOwnerType::CompanyName] = array('ENTITY_TYPE' => CCrmOwnerType::CompanyName, 'SERVICE_URL' => '/bitrix/components/bitrix/crm.company.show/ajax.php?' . bitrix_sessid_get());
if ($enableDefaultConfig) {
$config['left'] = 'COMPANY_TYPE,INDUSTRY';
$config['center'] = 'PHONE,EMAIL,WEB';
$config['right'] = 'ASSIGNED_BY_ID';