本文整理汇总了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) {
示例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);
}