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


PHP RequestUtil::getTotalSubvendorsLink方法代码示例

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


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

示例1: getCurrentSubVendorsTopNavFilters

 /**
  * Function to populate the Sub Vendors dashboard drop down filters
  *
  * @param $active_domain_link
  * @param $domain
  * @return string
  */
 static function getCurrentSubVendorsTopNavFilters($active_domain_link, $domain)
 {
     $mwbe_filters_html = "";
     $tm_wbe = _getRequestParamValue('tm_wbe');
     //M/WBE filters should be included in mp and sp dashboards
     if (RequestUtil::isDashboardFlowPrimevendor() || $tm_wbe == "Y") {
         $applicable_minority_types = self::getCurrentSubMWBEApplicableFilters($domain);
         $active_domain_link = preg_replace('/\\/mwbe\\/[^\\/]*/', '', $active_domain_link);
         if (array_intersect($applicable_minority_types, array(4, 5))) {
             $mwbe_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))) {
             $mwbe_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))) {
             $mwbe_filters_html .= "<li class='no-click'><a href='/" . $active_domain_link . "/mwbe/9'>Women</a></li>";
         }
         if (array_intersect($applicable_minority_types, array(3))) {
             $mwbe_filters_html .= "<li class='no-click'><a href='/" . $active_domain_link . "/mwbe/3'>Hispanic American</a></li>";
         }
         if ($mwbe_filters_html != "") {
             $mwbe_filters_html = "<li class='no-click title'>M/WBE Category</li>" . $mwbe_filters_html;
         }
     }
     //Sub vendors home link
     $year = _getRequestParamValue('year');
     $yearType = _getRequestParamValue('yeartype');
     $sub_vendors_home_link = RequestUtil::getLandingPageUrl($domain, $year, $yearType);
     $home_link_html = "<li class='no-click'><a href='/" . $sub_vendors_home_link . "/dashboard/ss'>Sub Vendors Home</a></li>";
     //Sub vendors total link
     $total_subven_link = RequestUtil::getTotalSubvendorsLink();
     $total_link_html = $total_subven_link != null && $total_subven_link != "" ? "<li class='no-click'><a href='" . $total_subven_link . "'>Total Sub Vendors</a></li>" : "";
     //Append all links
     $filters_html = "<div class='main-nav-drop-down' style='display:none'>";
     $filters_html .= "<ul>";
     $filters_html .= $mwbe_filters_html . $total_link_html . $home_link_html;
     $filters_html .= "</ul>";
     $filters_html .= "</div>";
     return $filters_html;
 }
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:47,代码来源:MappingUtil.php


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