Commit 996432ce883fac8ec1ccbb6070b7126ed837416f
1 parent
22a14871
Exists in
master
and in
9 other branches
info : request on parameter
Showing
1 changed file
with
12 additions
and
1 deletions
Show diff stats
src/DDSERVICES/HAPI/info.php
... | ... | @@ -23,6 +23,13 @@ |
23 | 23 | |
24 | 24 | $id = $_GET["id"]; |
25 | 25 | |
26 | + if ($_GET["parameters"]) { | |
27 | + $paramRequest = explode(",",$_GET["parameters"]); | |
28 | + } | |
29 | + else { | |
30 | + $paramRequest = null; | |
31 | + } | |
32 | + | |
26 | 33 | $pattern = "$id.xml"; |
27 | 34 | $files = rglob($pattern); |
28 | 35 | |
... | ... | @@ -63,7 +70,11 @@ |
63 | 70 | if ($size->length > 0) { |
64 | 71 | $oneParam["size"] = array(intval($size->item(0)->nodeValue)); |
65 | 72 | } |
66 | - $parametersResponse[] = $oneParam; | |
73 | + if ($paramRequest && !in_array($param->getElementsByTagName('Name')->item(0)->nodeValue, $paramRequest)) { | |
74 | + // | |
75 | + } else { | |
76 | + $parametersResponse[] = $oneParam; | |
77 | + } | |
67 | 78 | } |
68 | 79 | } |
69 | 80 | } |
... | ... |