当前位置: 首页>>代码示例>>PHP>>正文


PHP CCrmDeal::GetFieldCaption方法代码示例

本文整理汇总了PHP中CCrmDeal::GetFieldCaption方法的典型用法代码示例。如果您正苦于以下问题:PHP CCrmDeal::GetFieldCaption方法的具体用法?PHP CCrmDeal::GetFieldCaption怎么用?PHP CCrmDeal::GetFieldCaption使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CCrmDeal的用法示例。


在下文中一共展示了CCrmDeal::GetFieldCaption方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: elseif

        } elseif ($k === 'COMPANY_ID') {
            $entityData['COMPANY_ID'] = __CrmQuickPanelViewPrepareClientInfo(CCrmOwnerType::CompanyName, $entityContext);
        } elseif ($k === 'CONTACT_ID') {
            $entityData['CONTACT_ID'] = __CrmQuickPanelViewPrepareClientInfo(CCrmOwnerType::ContactName, $entityContext);
        } elseif ($k === 'ASSIGNED_BY_ID') {
            $entityData['ASSIGNED_BY_ID'] = __CrmQuickPanelViewPrepareResponsible($entityFields, $userProfilePath, $nameTemplate, $enableInstantEdit, $arResult['INSTANT_EDITOR_ID'], $arResult['SERVICE_URL']);
        } elseif ($k === 'PROBABILITY') {
            $entityData[$k] = array('type' => 'text', 'editable' => $enableInstantEdit, 'data' => array('baseType' => 'int', 'text' => $entityFields["~{$k}"]));
        } elseif ($k === 'COMMENTS') {
            $entityData[$k] = array('type' => 'html', 'editable' => $enableInstantEdit, 'data' => array('html' => $entityFields["~{$k}"], 'serviceUrl' => $arResult['SERVICE_URL']));
        } else {
            $entityData[$k] = array('type' => 'text', 'editable' => $enableInstantEdit, 'data' => array('text' => $entityFields["~{$k}"]));
        }
        $caption = isset($formFieldNames[$k]) ? $formFieldNames[$k] : '';
        if ($caption === '') {
            $caption = CCrmDeal::GetFieldCaption($k);
        }
        $entityData[$k]['caption'] = $caption;
    }
    $arResult['HEAD_TITLE'] = isset($entityFields['TITLE']) ? $entityFields['TITLE'] : '';
    $arResult['HEAD_TITLE_FIELD_ID'] = 'TITLE';
} elseif ($entityTypeID === CCrmOwnerType::Lead) {
    $entityContext['SIP_MANAGER_CONFIG'][CCrmOwnerType::LeadName] = array('ENTITY_TYPE' => CCrmOwnerType::LeadName, 'SERVICE_URL' => '/bitrix/components/bitrix/crm.lead.show/ajax.php?' . bitrix_sessid_get());
    $ufEntityID = CCrmLead::$sUFEntityID;
    $fieldKeys = array('TITLE' => true, 'COMPANY_TITLE' => true, 'NAME' => true, 'SECOND_NAME' => true, 'LAST_NAME' => true, 'STATUS_ID' => true, 'STATUS_DESCRIPTION' => true, 'SOURCE_ID' => true, 'SOURCE_DESCRIPTION' => true, 'CURRENCY_ID' => true, 'OPPORTUNITY' => true, 'POST' => true, 'ADDRESS' => true, 'BIRTHDATE' => true, 'OPENED' => true, 'ASSIGNED_BY_ID' => true, 'COMMENTS' => true);
    if ($enableDefaultConfig) {
        $config['left'] = 'SOURCE_ID,SOURCE_DESCRIPTION';
        $config['center'] = 'PHONE,EMAIL,IM';
        $config['right'] = 'ASSIGNED_BY_ID';
        $config['bottom'] = 'COMMENTS';
    }
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:component.php


注:本文中的CCrmDeal::GetFieldCaption方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。