Update uri.php

This commit is contained in:
Namhyeon Go 2018-04-14 23:52:38 +09:00 committed by GitHub
parent 5fc354cce8
commit 894b73a037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,6 +150,18 @@ if(!function_exists("get_requested_values")) {
}
}
if(!function_exists("get_binded_requests")) {
function get_binded_requests($rules, $method="_ALL") {
$data = array();
foreach($rules as $k=>$v) {
$data[$v] = get_requested_value($k);
}
return $data;
}
}
if(!function_exists("get_array")) {
function get_array($arr) {
return is_array($arr) ? $arr : array();