From: jerome Date: Fri, 27 Feb 2009 00:48:26 +0000 (+0000) Subject: web service MDL-12886 documentation: complete description of the return type X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=eabd5ae10170fd9769d54baa894126eef61b200a;p=moodle.git web service MDL-12886 documentation: complete description of the return type --- 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;