Skip to content

Commit

Permalink
web service MDL-12886 documentation: manage no return value into the …
Browse files Browse the repository at this point in the history
…description array
  • Loading branch information
jerome committed Mar 11, 2009
1 parent f77569e commit dfdfe76
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions webservice/documentation.php
Expand Up @@ -104,18 +104,21 @@ function generate_functionlist () {
$documentation .= <<<EOF
<b>)</b> :
EOF;
foreach($functiondescription['return'] as $return => $type) {
$documentation .= <<<EOF
if (array_key_exists('return', $functiondescription)) {
foreach($functiondescription['return'] as $return => $type) {
$documentation .= <<<EOF
<i>
{$type}</i>
{$type}</i>
EOF;
if (is_array($type)) {
$arraytype = "<pre>".print_r($type, true)."</pre>";
$documentation .= <<<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)) {
Expand Down

0 comments on commit dfdfe76

Please sign in to comment.