Update uri.php
This commit is contained in:
parent
437f51c805
commit
5341e86b5d
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user