]> git.mjollnir.org Git - moodle.git/commitdiff
webservice MDL-17135 remove old Moodleforms for service admin page
authorjerome <jerome>
Mon, 19 Oct 2009 15:12:49 +0000 (15:12 +0000)
committerjerome <jerome>
Mon, 19 Oct 2009 15:12:49 +0000 (15:12 +0000)
admin/external_forms.php [deleted file]
admin/external_service.php
admin/external_service_functions.php
admin/external_service_users.php

diff --git a/admin/external_forms.php b/admin/external_forms.php
deleted file mode 100644 (file)
index d7d29c5..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-
-// This file is part of Moodle - http://moodle.org/
-//
-// Moodle is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// Moodle is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
-
-/**
- * Web services admin UI forms
- *
- * @package   webservice
- * @copyright 2009 Moodle Pty Ltd (http://moodle.com)
- * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- */
-
-require_once $CFG->libdir.'/formslib.php';
-
-class external_service_functions_form extends moodleform {
-    function definition() {
-        global $CFG, $USER, $DB;
-
-        $mform = $this->_form;
-        $data = $this->_customdata;
-
-        $mform->addElement('header', 'addfunction', get_string('addfunction', 'webservice'));
-
-        $select = "name NOT IN (SELECT s.functionname
-                                  FROM {external_services_functions} s
-                                 WHERE s.externalserviceid = :sid
-                               )";
-
-        $functions = $DB->get_records_select_menu('external_functions', $select, array('sid'=>$data['id']), 'name', 'id, name');
-
-        $mform->addElement('select', 'fid', get_string('name'), $functions);
-
-        $mform->addElement('hidden', 'id');
-        $mform->setType('id', PARAM_INT);
-
-        $mform->addElement('hidden', 'action');
-        $mform->setType('action', PARAM_ACTION);
-
-        $this->add_action_buttons(true);
-
-        $this->set_data($data);
-    }
-}
index 21f30415d21332a389eab579c4fa180be3aa0bd0..5ed89b4b4406241f588fa8e2822c3873e19954fa 100644 (file)
@@ -25,7 +25,6 @@
 
 require_once('../config.php');
 require_once($CFG->libdir.'/adminlib.php');
-require_once('external_forms.php');
 
 $id      = required_param('id', PARAM_INT);
 $action  = optional_param('action', '', PARAM_ACTION);
index 9a9945e28eae1c77f4df972544df250e66f0bb82..7a20b72d53a8552733730d7380c76c9dff3c9a5c 100644 (file)
@@ -25,7 +25,6 @@
 
 require_once('../config.php');
 require_once($CFG->libdir.'/adminlib.php');
-require_once('external_forms.php');
 
 $id      = required_param('id', PARAM_INT);
 $fid     = optional_param('fid', 0, PARAM_INT);
index b75daaf60e5fd7eb60814f054e34d1b00e832849..17ac8753951029ec21eb4547683ee305dd01932b 100644 (file)
@@ -25,7 +25,6 @@
 
 require_once('../config.php');
 require_once($CFG->libdir.'/adminlib.php');
-require_once('external_forms.php');
 require_once($CFG->dirroot.'/admin/webservice/lib.php');
 
 $id = required_param('id', PARAM_INT);