本文整理汇总了PHP中RequestUtil::is_prime_mwbe_amount_zero_sub_mwbe_not_zero方法的典型用法代码示例。如果您正苦于以下问题:PHP RequestUtil::is_prime_mwbe_amount_zero_sub_mwbe_not_zero方法的具体用法?PHP RequestUtil::is_prime_mwbe_amount_zero_sub_mwbe_not_zero怎么用?PHP RequestUtil::is_prime_mwbe_amount_zero_sub_mwbe_not_zero使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RequestUtil
的用法示例。
在下文中一共展示了RequestUtil::is_prime_mwbe_amount_zero_sub_mwbe_not_zero方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
// call function to get sub vendors drop down filters.
$svendor_filters = MappingUtil::getCurrentSubVendorsTopNavFilters($svendor_active_domain_link, "contracts");
} else {
//for prime flow include prime + sub; for sub vendor flow include sub.
if ($current_dashboard == "mp" || $current_dashboard == "sp" || $current_dashboard == null) {
$mwbe_amount = $node->data[5]['check_amount_sum'];
$mwbe_subven_amount = $node->data[9]['check_amount_sum'];
} else {
$mwbe_amount = $node->data[9]['check_amount_sum'];
$mwbe_subven_amount = 0;
}
$mwbe_prime_amount = $node->data[5]['check_amount_sum'];
// if prime is zero and sub amount is not zero. change dashboard to ms
if ($mwbe_prime_amount == null && $mwbe_subven_amount > 0) {
$mwbe_amount += $mwbe_subven_amount;
RequestUtil::$is_prime_mwbe_amount_zero_sub_mwbe_not_zero = true;
$mwbe_active_domain_link = preg_replace('/\\/dashboard\\/../', '/dashboard/ms', $mwbe_active_domain_link);
}
// call function to get mwbe drop down filters.
$mwbe_filters = MappingUtil::getCurrentMWBETopNavFilters($mwbe_active_domain_link, "spending");
// call function to get sub vendors drop down filters.
$svendor_filters = MappingUtil::getCurrentSubVendorsTopNavFilters($svendor_active_domain_link, "spending");
$svendor_amount = $node->data[7]['check_amount_sum'];
}
}
// tm_wbe is an exception case for total MWBE link. When prime data is not present but sub data is present for the agency vendor combination.
if (_getRequestParamValue("tm_wbe") == 'Y') {
$svendor_amount = $mwbe_amount;
}
// make amounts zero for non mwbe and indviduals and others mwbe categories.
if (preg_match('/mwbe\\/7/', $_GET['q']) || preg_match('/mwbe\\/11/', $_GET['q'])) {