本文整理匯總了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;
}
}