web service MDL-12886 documentation: complete description of the return type

This commit is contained in:
jerome
2009-02-27 00:48:26 +00:00
parent b15804af32
commit eabd5ae101
+14 -7
View File
@@ -62,7 +62,7 @@ function check_webservices($protocol){
}
}
}
/**
@@ -123,18 +123,25 @@ EOF;
$documentation .= <<<EOF
{$comma} {$type} {$param}
EOF;
if (empty($comma)) {
if (empty($comma)) {
$comma = ',';
}
}
$documentation .= <<<EOF
<b>)</b> :
EOF;
foreach($functiondescription['return'] as $return => $type) {
$documentation .= <<<EOF
{$type} <br/>
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)) {
@@ -150,7 +157,7 @@ EOF;
$documentation .= <<<EOF
</ul>
EOF;
}
echo $documentation;