web service MDL-12886 documentation: manage no return value into the description array

This commit is contained in:
jerome
2009-03-11 04:28:04 +00:00
parent f77569e1ad
commit dfdfe762b1
+10 -7
View File
@@ -104,18 +104,21 @@ EOF;
$documentation .= <<<EOF
<b>)</b> :
EOF;
foreach($functiondescription['return'] as $return => $type) {
$documentation .= <<<EOF
<i>
{$type}</i>
EOF;
if (is_array($type)) {
$arraytype = "<pre>".print_r($type, true)."</pre>";
if (array_key_exists('return', $functiondescription)) {
foreach($functiondescription['return'] as $return => $type) {
$documentation .= <<<EOF
<i>
{$type}</i>
EOF;
if (is_array($type)) {
$arraytype = "<pre>".print_r($type, true)."</pre>";
$documentation .= <<<EOF
<i> {$return} {$arraytype} <br><br></i>
EOF;
}
}
}
foreach($functiondescription['params'] as $param => $type) {
if (is_array($type)) {