當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CDBResult::InitNavStartVars方法代碼示例

本文整理匯總了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)) {
開發者ID:mrdeadmouse,項目名稱:u136006,代碼行數:31,代碼來源:component.php


注:本文中的CDBResult::InitNavStartVars方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。