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


PHP RequestUtil::getRequestKeyValueFromURL方法代码示例

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


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

示例1: explode

             }
             if (preg_match("/expandBottomContURL/", $link) && (preg_match("/spending/", $link) || preg_match("/payroll/", $link))) {
                 $link_parts = explode("?expandBottomContURL=", $link);
                 $url = $link_parts[0];
                 $bottom_url = preg_replace("/\\/year\\//", "/calyear/", $link_parts[1]);
                 $bottom_url_year_id = RequestUtil::getRequestKeyValueFromURL("calyear", $bottom_url);
                 $bottom_url = preg_replace('/\\/calyear\\/' . $bottom_url_year_id . '/', '/calyear/' . $value['year_id'], $bottom_url);
                 $link = $url . '?expandBottomContURL=' . $bottom_url;
             }
             $link = preg_replace("/yeartype\\/./", "yeartype/C", $link);
             $link = str_replace("/dept/" . $deptId, "/dept/" . $dept_Ids[$value['year_id']], $link);
             $link = str_replace("/expcategory/" . $expCatId, "/expcategory/" . $expCatIds[$value['year_id']], $link);
         }
         /*For the charts with the months links, need to persist the month param for the newly selected year*/
         if (isset($bottomURL) && preg_match('/month/', $bottomURL)) {
             $old_month_id = RequestUtil::getRequestKeyValueFromURL("month", $bottomURL);
             $year_id = $value['year_id'];
             if (isset($old_month_id) && isset($year_id)) {
                 $new_month_id = _translateMonthIdByYear($old_month_id, $year_id, "C");
                 $link = preg_replace('/\\/month\\/' . $old_month_id . '/', '/month/' . $new_month_id, $link);
             }
         }
         $calendar_year_data_array[] = array('display_text' => 'CY ' . $value['year_value'] . ' (Jan 1, ' . $value['year_value'] . ' - Dec 31, ' . $value['year_value'] . ')', 'value' => $value['year_id'] . '~C', 'link' => $link, 'selected' => $selected_cal_year);
     }
 }
 $year_data_array = array_merge($fiscal_year_data_array, $calendar_year_data_array);
 if (_getRequestParamValue('contstatus') == 'P') {
     return;
 }
 $year_list = "<select id='year_list'>";
 foreach ($year_data_array as $key => $value) {
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:31,代码来源:year_list.tpl.php

示例2: getRevenueNoRecordsMsg

 static function getRevenueNoRecordsMsg()
 {
     $bottomURL = $_REQUEST['expandBottomContURL'];
     if (isset($bottomURL) && preg_match('/transactions/', $bottomURL) || preg_match('/agency_revenue_by_cross_year_collections_details/', current_path()) || preg_match('/agency_revenue_by_cross_year_collections_details/', $bottomURL) || preg_match('/revenue_category_revenue_by_cross_year_collections_details/', current_path()) || preg_match('/revenue_category_revenue_by_cross_year_collections_details/', $bottomURL) || preg_match('/funding_class_revenue_by_cross_year_collections_details/', current_path()) || preg_match('/funding_class_revenue_by_cross_year_collections_details/', $bottomURL) || preg_match('/revenue_transactions/', current_path())) {
         $smnid = isset($bottomURL) ? RequestUtil::getRequestKeyValueFromURL("smnid", $bottomURL) : RequestUtil::getRequestKeyValueFromURL("smnid", current_path());
         $dtsmnid = isset($bottomURL) ? RequestUtil::getRequestKeyValueFromURL("dtsmnid", $bottomURL) : RequestUtil::getRequestKeyValueFromURL("dtsmnid", current_path());
         if ($smnid > 0 || $dtsmnid > 0) {
             if ($dtsmnid > 0) {
                 $title = "There are no records to be displayed.";
             } else {
                 $bottomURL = $bottomURL ? $bottomURL : current_path();
                 $last_id = _getLastRequestParamValue($bottomURL);
                 if ($last_id["agency"] > 0) {
                     $title = _checkbook_project_get_name_for_argument("agency_id", RequestUtil::getRequestKeyValueFromURL("agency", $bottomURL));
                 } elseif ($last_id["revcat"] > 0) {
                     $title = _checkbook_project_get_name_for_argument("revenue_category_id", RequestUtil::getRequestKeyValueFromURL("revcat", $bottomURL));
                 } elseif (isset($last_id["fundsrccode"])) {
                     $title = _checkbook_project_get_name_for_argument("funding_class_code", RequestUtil::getRequestKeyValueFromURL("fundsrccode", $bottomURL));
                 }
                 $title = 'There are no records to be displayed for ' . $title . '.';
             }
         }
     } else {
         $title = "There are no revenue details.";
     }
     return html_entity_decode($title);
 }
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:27,代码来源:RequestUtil.php


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