*/
require('../../../config.php');
-require_once("$CFG->dirroot/webservice/webservice_test_client_form.php");
+require_once("$CFG->dirroot/webservice/testclient_forms.php");
require_once("$CFG->dirroot/webservice/rest/locallib.php");
$function = optional_param('function', '', PARAM_SAFEDIR);
}
$class = $function.'_form';
-require_once("$CFG->dirroot/webservice/rest/testclient/$class.php");
$mform = new $class();
require_once($CFG->dirroot.'/lib/formslib.php');
+class webservice_test_client_form extends moodleform {
+ public function definition() {
+ global $CFG;
+
+ $mform = $this->_form;
+ $functions = $this->_customdata;
+
+ $mform->addElement('header', 'wstestclienthdr', get_string('testclient', 'webservice'));
+
+ $mform->addElement('select', 'function', get_string('function', 'webservice'), $functions);
+
+ $this->add_action_buttons(false, get_string('select'));
+ }
+}
+
class moodle_group_get_groups_form extends moodleform {
public function definition() {
global $CFG;
+++ /dev/null
-<?php
-
-require_once($CFG->dirroot.'/lib/formslib.php');
-
-
-class webservice_test_client_form extends moodleform {
- public function definition() {
- global $CFG;
-
- $mform = $this->_form;
- $functions = $this->_customdata;
-
- $mform->addElement('header', 'wstestclienthdr', get_string('testclient', 'webservice'));
-
- $mform->addElement('select', 'function', get_string('function', 'webservice'), $functions);
-
- $this->add_action_buttons(false, get_string('select'));
- }
-}
\ No newline at end of file