当前位置: 首页>>代码示例>>PHP>>正文


PHP RequestUtil::getTotalMWBELink方法代码示例

本文整理汇总了PHP中RequestUtil::getTotalMWBELink方法的典型用法代码示例。如果您正苦于以下问题:PHP RequestUtil::getTotalMWBELink方法的具体用法?PHP RequestUtil::getTotalMWBELink怎么用?PHP RequestUtil::getTotalMWBELink使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在RequestUtil的用法示例。


在下文中一共展示了RequestUtil::getTotalMWBELink方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getCurrentMWBETopNavFilters

 /**
  * Function to populate the M/WBE dashboard drop down filters
  *
  * @param $active_domain_link
  * @param $domain
  * @return string
  */
 static function getCurrentMWBETopNavFilters($active_domain_link, $domain)
 {
     if (RequestUtil::isDashboardFlowSubvendor()) {
         $applicable_minority_types = self::getCurrentSubMWBEApplicableFilters($domain);
     } else {
         $applicable_minority_types = self::getCurrentPrimeMWBEApplicableFilters($domain);
     }
     $mwbe_featured_dashboard_param = RequestUtil::getNextMWBEDashboardState();
     $active_domain_link = preg_replace('/\\/mwbe\\/[^\\/]*/', '', $active_domain_link);
     $filters_html = "<div class='main-nav-drop-down' style='display:none'>\n  \t\t<ul>\n  \t\t\t<li class='no-click title'>M/WBE Category</li>\n  \t\t\t\t\t";
     if (array_intersect($applicable_minority_types, array(4, 5))) {
         $filters_html .= "<li class='no-click'><a href='/" . $active_domain_link . "/mwbe/4~5'>Asian American</a></li>";
     }
     if (array_intersect($applicable_minority_types, array(2))) {
         $filters_html .= "<li class='no-click'><a href='/" . $active_domain_link . "/mwbe/2'>Black American</a></li>";
     }
     if (array_intersect($applicable_minority_types, array(9))) {
         $filters_html .= "<li class='no-click'><a href='/" . $active_domain_link . "/mwbe/9'>Women</a></li>";
     }
     if (array_intersect($applicable_minority_types, array(3))) {
         $filters_html .= "<li class='no-click'><a href='/" . $active_domain_link . "/mwbe/3'>Hispanic American</a></li>";
     }
     /*    	if(array_intersect($applicable_minority_types,array(7,11))){
         		$filters_html .=  "<li class='no-click title'>Other</li>";
         		if(array_intersect($applicable_minority_types,array(7))){
         			$filters_html .=  "<li class='no-click'><a href='/" . $active_domain_link . "/mwbe/7/dashboard/dsv" . "'>Non-M/WBE</a></li>";
         		}
         		if(array_intersect($applicable_minority_types,array(11))){
         			$filters_html .=  "<li class='no-click'><a href='/" . $active_domain_link . "/mwbe/11/dashboard/dsv" . "'>Individuals & Others</a></li>";
         		}    		
         	}
     */
     $total_mwbe_link = RequestUtil::getTotalMWBELink();
     if ($total_mwbe_link != null && $total_mwbe_link != "") {
         $mwbe_total_link_html = "<li class='no-click'><a href='" . $total_mwbe_link . "'>Total M/WBE</a></li>";
     }
     $year = _getRequestParamValue('year');
     $yearType = _getRequestParamValue('yeartype');
     $filters_html .= "\n  \t\t\t " . $mwbe_total_link_html . "\n\t\t\t<li class='no-click'><a href='/" . RequestUtil::getLandingPageUrl($domain, $year, $yearType) . "/mwbe/" . MappingUtil::$total_mwbe_cats . "/dashboard/mp'>M/WBE Home</a></li>\n  \t\t\t\t</ul>\n  \t\t</div>";
     return $filters_html;
 }
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:48,代码来源:MappingUtil.php


注:本文中的RequestUtil::getTotalMWBELink方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。