Update uri.php

This commit is contained in:
Namhyeon Go 2018-04-15 01:24:12 +09:00 committed by GitHub
parent 437f51c805
commit 5341e86b5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ if(!function_exists("get_route_link")) {
$link = str_replace("&", "&", $link);
}
return $link;
)
}
}
if(!function_exists("redirect_uri")) {
@ -171,13 +171,30 @@ if(!function_exists("get_binded_requests")) {
$data = array();
foreach($rules as $k=>$v) {
if(!empty($v)) {
$data[$v] = get_requested_value($k);
}
}
return $data;
}
}
if(!function_exists("get_filtered_requests")) {
function get_filtered_requests($filter_keys, $method="_ALL") {
$data = array();
$requests = get_requests("requests");
if(array_key_exists($method, $requests)) {
foreach($filter_keys as $name) {
if(array_key_exists($name, $requests[$method])) {
$data[$name] = $requests[$method][$name];
}
}
}
return $data;
}
}
if(!function_exists("get_array")) {
function get_array($arr) {
return is_array($arr) ? $arr : array();