Skip to content

Commit

Permalink
web services MDL-12886 fix documentation: support of a unique descrip…
Browse files Browse the repository at this point in the history
…tion object into two diffferent function descriptions
  • Loading branch information
jerome committed Sep 1, 2009
1 parent fff23fc commit b7510c3
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions webservice/wsdoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
$PAGE->set_url('webservice/wsdoc.php');
$PAGE->set_title(get_string('wspagetitle', 'webservice'));
$PAGE->set_heading(get_string('wspagetitle', 'webservice'));
$PAGE->set_generaltype("form");
echo $OUTPUT->header();
webservice_lib::display_webservices_availability($protocol);
generate_documentation($protocol);
Expand Down Expand Up @@ -222,6 +223,20 @@ function converterMoodleParamIntoWsParam($moodleparam) {
case PARAM_TEXT:
return "string";
break;
//here we check that the value has not already been changed
//the algo could want to do it in the case two functions of the web description use the
//same object ($params or $return could be the same for two functions, so the guy
//writing the web description use the same object)
//as the convertDescriptionType function passes parameter in reference
case "integer":
return "integer";
break;
case "boolean":
return "boolean";
break;
case "string":
return "string";
break;
default:

//return get_object_vars($moodleparam);
Expand Down Expand Up @@ -260,6 +275,3 @@ function setListApiFiles( &$files, $directorypath ) {
}
}
}


?>

0 comments on commit b7510c3

Please sign in to comment.