本文整理汇总了PHP中CDBResult::InitNavStartVars方法的典型用法代码示例。如果您正苦于以下问题:PHP CDBResult::InitNavStartVars方法的具体用法?PHP CDBResult::InitNavStartVars怎么用?PHP CDBResult::InitNavStartVars使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CDBResult
的用法示例。
在下文中一共展示了CDBResult::InitNavStartVars方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: strtolower
$navigationData['NEXT_PAGE_URL'] = $APPLICATION->GetCurPageParam('AJAX_CALL=Y&PAGING=Y&FORMAT=json&entityTypes[]=' . strtolower(CCrmOwnerType::ContactName) . '&SEARCH=' . ($enableSearch ? 'Y' : 'N') . '&' . $navigationData['PAGER_PARAM'] . '=' . $navigationData['PAGE_NEXT_NUMBER'], array('AJAX_CALL', 'PAGING', 'FORMAT', 'SEARCH', 'entityTypes', $navigationData['PAGER_PARAM']));
}
$navigationData['SEARCH_PAGE_URL'] = $APPLICATION->GetCurPageParam('AJAX_CALL=Y&SEARCH=Y&FORMAT=json&apply_filter=Y&save=Y&entityTypes[]=' . strtolower(CCrmOwnerType::ContactName), array('AJAX_CALL', 'SEARCH', 'FORMAT', 'entityTypes', 'save', 'apply_filter', 'clear_filter'));
$arResult['ENTITY_DATA'][CCrmOwnerType::ContactName]['NAVIGATION'] =& $navigationData;
unset($navigationData);
$arResult['ENTITY_DATA'][CCrmOwnerType::ContactName]['RELOAD_URL'] = $APPLICATION->GetCurPageParam('AJAX_CALL=Y&FORMAT=json&entityTypes[]=' . strtolower(CCrmOwnerType::ContactName), array('AJAX_CALL', 'SEARCH', 'FORMAT', 'entityTypes', 'save'));
if ($arParams['ENABLE_CREATION']) {
$arResult['ENTITY_DATA'][CCrmOwnerType::ContactName]['CREATE_URL'] = $arParams['CONTACT_EDIT_URL_TEMPLATE'] !== '' ? CComponentEngine::MakePathFromTemplate($arParams['CONTACT_EDIT_URL_TEMPLATE'], array('contact_id' => 0, 'context_id' => $contextID)) : '';
}
}
//<-- CONTACT
// COMPANY -->
if (!in_array(CCrmOwnerType::CompanyName, $effectiveEntityTypes, true)) {
//HACK: For $dbRes->NavNum correction
$dbRes = new CDBResult();
$dbRes->InitNavStartVars();
} else {
$dataUid = $uid . '_' . strtolower(CCrmOwnerType::CompanyName);
$arResult['ENTITY_DATA'][CCrmOwnerType::CompanyName] = array('UID' => $dataUid, 'ITEMS' => array());
$sort = $companySort;
$select = $companySelect;
$filter = array();
$filterFields = array(array('id' => 'ID'), array('id' => 'TITLE'), array('id' => 'CONTACT_ID'));
$navParams = array('nPageSize' => $itemPerPage, 'iNumPage' => $enablePaging ? false : 1, 'bShowAll' => false);
$navigation = CDBResult::GetNavParams($navParams);
$CGridOptions = new CCrmGridOptions($dataUid);
$navParams = $CGridOptions->GetNavParams($navParams);
$navParams['bShowAll'] = false;
if ($enableSearch) {
$filter += $CGridOptions->GetFilter($filterFields);
if (!empty($filter)) {