From: jerome Date: Wed, 26 Aug 2009 08:04:08 +0000 (+0000) Subject: webservice MDL-12886 remove old documentation file X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4553c3d2f083ec7289c21466df97c098bbb70ab0;p=moodle.git webservice MDL-12886 remove old documentation file --- diff --git a/webservice/documentation.php b/webservice/documentation.php deleted file mode 100644 index 356372de3e..0000000000 --- a/webservice/documentation.php +++ /dev/null @@ -1,180 +0,0 @@ -footer(); - - - -/** - * Generate documentation specific to a protocol - * @param string $protocol - */ -function generate_documentation($protocol) { - switch ($protocol) { - - case "soap": - $documentation = get_string('soapdocumentation','webservice'); - break; - case "xmlrpc": - $documentation = get_string('xmlrpcdocumentation','webservice'); - break; - default: - break; - } - echo $documentation; - echo "".get_string('wsuserreminder','webservice').""; - -} - - -/** - * Generate web service function list - * @global object $CFG - */ -function generate_functionlist () { - global $CFG; - $documentation = "

".get_string('functionlist','webservice')."

"; - - //retrieve all external file - $externalfiles = array(); - $externalfunctions = array(); - setListApiFiles($externalfiles, $CFG->dirroot); - - foreach ($externalfiles as $file) { - require($file); - - $classpath = substr($file,strlen($CFG->dirroot)+1); //remove the dir root + / from the file path - $classpath = substr($classpath,0,strlen($classpath) - 13); //remove /external.php from the classpath - $classpath = str_replace('/','_',$classpath); //convert all / into _ - $classname = $classpath."_external"; - $api = new $classname(); - $documentation .= "

".get_string('moodlepath','webservice').": ".$classpath."