web service MDL-12886 documentation: manage no return value into the description array
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user