Update uri.php

This commit is contained in:
Namhyeon Go 2019-03-07 11:59:54 +09:00 committed by GitHub
parent 50f0b77bde
commit 2263dff0cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -302,12 +302,14 @@ if(!check_function_exists("empty_requested_value")) {
}
if(!check_function_exists("get_binded_requests")) {
function get_binded_requests($rules, $method="_ALL") {
function get_binded_requests($rules, $method="_ALL", $equals_kv=false) {
$data = array();
foreach($rules as $k=>$v) {
if(!empty($v)) {
if(!$equals_kv) {
$data[$v] = get_requested_value($k);
} else {
$data[$k] = get_requested_value($k);
}
}