本文整理汇总了PHP中CCrmFieldMulti::PrepareEntityInfoBatch方法的典型用法代码示例。如果您正苦于以下问题:PHP CCrmFieldMulti::PrepareEntityInfoBatch方法的具体用法?PHP CCrmFieldMulti::PrepareEntityInfoBatch怎么用?PHP CCrmFieldMulti::PrepareEntityInfoBatch使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCrmFieldMulti
的用法示例。
在下文中一共展示了CCrmFieldMulti::PrepareEntityInfoBatch方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$arResult['ITEMS'] = $items;
$entityInfos = array();
/** @var Integrity\Duplicate $item **/
foreach ($items as $item) {
$entityID = $item->getRootEntityID();
if (!isset($entityInfos[$entityID])) {
$entityInfos[$entityID] = array();
}
}
$entityInfoOptions = array('ENABLE_EDIT_URL' => false, 'ENABLE_RESPONSIBLE' => true, 'ENABLE_RESPONSIBLE_PHOTO' => false);
if ($entityTypeID === CCrmOwnerType::Lead) {
$entityInfoOptions[$layoutID === CCrmOwnerType::Company ? 'TREAT_AS_COMPANY' : 'TREAT_AS_CONTACT'] = true;
}
\CCrmOwnerType::PrepareEntityInfoBatch($entityTypeID, $entityInfos, $enablePermissionCheck, $entityInfoOptions);
\CCrmFieldMulti::PrepareEntityInfoBatch('PHONE', $entityTypeName, $entityInfos, array('ENABLE_NORMALIZATION' => true));
\CCrmFieldMulti::PrepareEntityInfoBatch('EMAIL', $entityTypeName, $entityInfos);
$arResult['ENTITY_INFOS'] =& $entityInfos;
unset($entityInfos);
if ($arResult['HAS_PREV_PAGE']) {
$arResult['PREV_PAGE_URL'] = $APPLICATION->GetCurPageParam("pageNum=" . ($pageNum - 1), array("pageNum"));
}
if ($arResult['HAS_NEXT_PAGE']) {
$arResult['NEXT_PAGE_URL'] = $APPLICATION->GetCurPageParam("pageNum=" . ($pageNum + 1), array("pageNum"));
}
}
if ($isAdminUser) {
//~CRM_REBUILD_LEAD_DUP_INDEX, ~CRM_REBUILD_CONTACT_DUP_INDEX, ~CRM_REBUILD_COMPANY_DUP_INDEX
if (COption::GetOptionString('crm', "~CRM_REBUILD_{$entityTypeName}_DUP_INDEX", 'N') === 'Y') {
$arResult['NEED_FOR_REBUILD_DUP_INDEX'] = true;
}
}