";
@@ -177,14 +233,14 @@ EOF;
$documentationhtml .= "";
$documentationhtml .= print_collapsible_region_start('', 'aera_'.$functionname."_".$paramname,''.get_string('xmlrpcstructure', 'webservice').'',false,true,true);
//echo ''.get_string('xmlrpcstructure', 'webservice').' ';
- $documentationhtml .= $this->detailed_html_description($paramdesc);
+ $documentationhtml .= $brakeline.$this->detailed_description_html($paramdesc);
$documentationhtml .= print_collapsible_region_end(true);
$documentationhtml .= "";
$documentationhtml .= " ";
$documentationhtml .= "";
- $documentationhtml .= "";
- $documentationhtml .= ' '.get_string('restcode', 'webservice').'';
- $documentationhtml .= htmlentities($this->description_in_indented_xml_format($paramdesc));
+ $documentationhtml .= " ";
+ $documentationhtml .= ''.get_string('phpparam', 'webservice').' ';
+ $documentationhtml .= $brakeline.'['.$paramname.'] =>'.htmlentities($this->xmlrpc_param_description_html($paramdesc)). $brakeline. $brakeline;
$documentationhtml .= " ";
$documentationhtml .= "";
$documentationhtml .= "";
@@ -202,11 +258,17 @@ EOF;
$documentationhtml .= " ";
$documentationhtml .= print_collapsible_region_start('', 'aera_'.$functionname."_xmlrpc_return",''.get_string('xmlrpcstructure', 'webservice').'',false,true,true);
//echo ''.get_string('xmlrpcstructure', 'webservice').' ';
- $documentationhtml .= $this->detailed_html_description($description->returns_desc);
+ $documentationhtml .= $brakeline.$this->detailed_description_html($description->returns_desc);
$documentationhtml .= print_collapsible_region_end(true);
$documentationhtml .= "";
$documentationhtml .= " ";
- $documentationhtml .=$this->rest_response_html($functionname, $description->returns_desc);
+ $documentationhtml .= "";
+ $documentationhtml .= "";
+ $documentationhtml .= ''.get_string('phpresponse', 'webservice').' ';
+ $documentationhtml .= htmlentities($this->xmlrpc_param_description_html($description->returns_desc)).$brakeline.$brakeline;
+ $documentationhtml .= " ";
+ $documentationhtml .= " ";
+ $documentationhtml .= $this->rest_response_html($functionname, $description->returns_desc);
}
$documentationhtml .= "";
$documentationhtml .= "
";
@@ -250,7 +312,7 @@ EOF;
// echo get_string('error','webservice',$errormessage);
// echo "
";
- //login form - we cannot use moodle form are we don't have sessionkey
+ //login form - we cannot use moodle form as we don't have sessionkey
$form = new html_form();
$form->url = new moodle_url($CFG->wwwroot.'/webservice/wsdoc.php', array()); // Required
$form->button = new html_button();
|