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


PHP RequestUtil::isNewWindow方法代码示例

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


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

示例1: getMWBECategory

 /**
  * Based on the dashboard and minority type,
  * this will return either a link or just the M/WBE category name.
  *
  * NYCCHKBK-4676:
  *   Do not hyperlink the M/WBE category within Top 5 Sub vendors widget if you are looking at prime data[M/WBE Featured Dashboard].
  *   Do not hyperlink the M/WBE category within Top 5 Prime vendors widget if you are looking at sub data[M/WBE(sub vendors) featured dashboard].
  *   The Details link from these widgets, also should follow same rule of not hyperlinking the M/WBE category.
  * NYCCHKBK-4798:
  *   From Top 5 Sub vendors widget, link should go to SP to maintain correct data
  * @param $node
  * @param $row
  * @return string
  */
 public static function getMWBECategory($node, $row)
 {
     $minority_type_id = isset($row["prime_minority_type_prime_minority_type"]) ? $row["prime_minority_type_prime_minority_type"] : $row["minority_type_minority_type"];
     $minority_category = MappingUtil::getMinorityCategoryById($minority_type_id);
     $is_mwbe_certified = MappingUtil::isMWBECertified(array($minority_type_id));
     $dtsmnid = _getRequestParamValue("dtsmnid");
     $smnid = _getRequestParamValue("smnid");
     $dashboard = _getRequestParamValue("dashboard");
     if ($dtsmnid != null) {
         $nid = $dtsmnid;
     } else {
         if ($smnid != null) {
             $nid = $smnid;
         } else {
             $nid = $node->nid;
         }
     }
     $no_link = $dashboard == "mp" && $nid == 720;
     $no_link = $no_link || preg_match('/s/', $dashboard) && ($nid == 725 || $nid == 783);
     $dashboard = preg_match('/p/', $dashboard) ? "mp" : "ms";
     //From sub vendors widget
     if ($nid == 720) {
         $dashboard = "sp";
     }
     $showLink = !RequestUtil::isNewWindow() && $is_mwbe_certified && !$no_link;
     if (!$showLink) {
         $return_value = $minority_category;
     } else {
         $return_value = '<a href="/contracts_landing' . _checkbook_project_get_year_url_param_string() . _checkbook_project_get_url_param_string("agency") . _checkbook_project_get_url_param_string("cindustry") . _checkbook_project_get_url_param_string("csize") . _checkbook_project_get_url_param_string("awdmethod") . _checkbook_project_get_url_param_string("contstatus", "status") . _checkbook_project_get_url_param_string("vendor") . _checkbook_project_get_url_param_string("subvendor") . '/dashboard/' . $dashboard . '/mwbe/' . $minority_type_id . '?expandBottomCont=true">' . $minority_category . '</a>';
     }
     return $return_value;
 }
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:46,代码来源:ContractUtil.php

示例2: showMWBECategoryLink

 /**
  * Returns true/false if M/WBE Category should be a link
  *
  * @param $node
  * @param $row
  * @return string
  */
 static function showMWBECategoryLink($node, $row)
 {
     $dtsmnid = _getRequestParamValue("dtsmnid");
     $smnid = _getRequestParamValue("smnid");
     $showLink = !RequestUtil::isNewWindow() && MappingUtil::isMWBECertified(array($row['minority_type_id'])) && $dtsmnid != 763 && $smnid != 763 && $dtsmnid != 747 && $smnid != 747 && $dtsmnid != 717 && $smnid != 717;
     return $showLink;
 }
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:14,代码来源:SpendingUtil.php

示例3: prepareSpendingContractTransactionsLink

 static function prepareSpendingContractTransactionsLink($row, $node)
 {
     $link = NULL;
     $docType = $row['document_code@checkbook:ref_document_code'];
     if (RequestUtil::isExpandBottomContainer()) {
         $link = '<a href=/panel_html/contract_transactions/contract_details/agid/' . $row['disb_agreement_id'] . '/doctype/' . $docType . _checkbook_append_url_params() . ' class=bottomContainerReload>' . $row['disb_contract_number'] . '</a>';
     } else {
         if (RequestUtil::isNewWindow()) {
             $link = '<span href=/contracts_landing/status/A' . _checkbook_project_get_year_url_param_string() . '?expandBottomContURL=/panel_html/contract_transactions/contract_details/agid/' . $row['disb_agreement_id'] . '/doctype/' . $docType . _checkbook_append_url_params() . ' class=loadParentWindow>' . $row['disb_contract_number'] . '</span>';
         } else {
             $link = '<a href=/contracts_landing/status/A' . _checkbook_project_get_year_url_param_string() . '?expandBottomContURL=/panel_html/contract_transactions/contract_details/agid/' . $row['disb_agreement_id'] . '/doctype/' . $docType . _checkbook_append_url_params() . ' >' . $row['disb_contract_number'] . '</a>';
         }
     }
     return $link;
 }
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:15,代码来源:ContractURLHelper.php


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