From eabd5ae10170fd9769d54baa894126eef61b200a Mon Sep 17 00:00:00 2001 From: jerome Date: Fri, 27 Feb 2009 00:48:26 +0000 Subject: [PATCH] web service MDL-12886 documentation: complete description of the return type --- webservice/documentation.php | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/webservice/documentation.php b/webservice/documentation.php index 4e9a809662..9152f0f242 100644 --- a/webservice/documentation.php +++ b/webservice/documentation.php @@ -62,7 +62,7 @@ function check_webservices($protocol){ } } - + } /** @@ -123,18 +123,25 @@ EOF; $documentation .= <<) : EOF; - foreach($functiondescription['return'] as $return => $type) { - $documentation .= << + foreach($functiondescription['return'] as $return => $type) { + $documentation .= << + {$type} +EOF; + if (is_array($type)) { + $arraytype = "
".print_r($type, true)."
"; + $documentation .= << {$return} {$arraytype}

EOF; - } + } + } foreach($functiondescription['params'] as $param => $type) { if (is_array($type)) { @@ -150,7 +157,7 @@ EOF; $documentation .= << EOF; - + } echo $documentation; -- 2.39.5