Commit 22a14871bcd2af8136ba3e93f0703d69241688b8
1 parent
538fbbab
Exists in
master
and in
9 other branches
size added
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
src/DDSERVICES/HAPI/info.php
... | ... | @@ -46,7 +46,7 @@ |
46 | 46 | |
47 | 47 | $paramDom = new DomDocument("1.0"); |
48 | 48 | |
49 | - $parametersResponse = array(array("name" => "Time", "type" => "isotime", "length" => 17, "units" => "", "fill" =>"")); | |
49 | + $parametersResponse = array(array("name" => "Time", "type" => "isotime", "length" => 20, "units" => "", "fill" =>"")); | |
50 | 50 | foreach ( $parameters as $param ) { |
51 | 51 | $oneParam = array(); |
52 | 52 | $oneParam["name"] = $param->getElementsByTagName('Name')->item(0)->nodeValue; |
... | ... | @@ -59,6 +59,10 @@ |
59 | 59 | $oneParam["description"] = $param->getElementsByTagName('Description')->item(0)->nodeValue; |
60 | 60 | $oneParam["fill"] = $param->getElementsByTagName('FillValue')->item(0)->nodeValue; |
61 | 61 | $oneParam["units"] = $param->getElementsByTagName('Units')->item(0)->nodeValue; |
62 | + $size = $param->getElementsByTagName('Size'); | |
63 | + if ($size->length > 0) { | |
64 | + $oneParam["size"] = array(intval($size->item(0)->nodeValue)); | |
65 | + } | |
62 | 66 | $parametersResponse[] = $oneParam; |
63 | 67 | } |
64 | 68 | } | ... | ... |