".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."