Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
482d15db8f | ||
|
|
9d70f553bb | ||
|
|
b77e2a2cdb | ||
|
|
f89cdba127 | ||
|
|
1acd3ef21d | ||
|
|
3f74278add | ||
|
|
4e64c0bcd2 | ||
|
|
835f5516e8 | ||
|
|
833434c5ba |
@@ -0,0 +1,42 @@
|
|||||||
|
<?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/>.
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem implementation for local_webhooks.
|
||||||
|
*
|
||||||
|
* @package local_webhooks
|
||||||
|
* @copyright 2020 Dmitrii Metelkin <dmitriim@catalyst-net.au>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace local_webhooks\privacy;
|
||||||
|
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
|
class provider implements
|
||||||
|
// This plugin does not store any personal user data.
|
||||||
|
\core_privacy\local\metadata\null_provider {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the language string identifier with the component's language
|
||||||
|
* file to explain why this plugin stores no data.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function get_reason() : string {
|
||||||
|
return 'privacy:metadata';
|
||||||
|
}
|
||||||
|
}
|
||||||
+34
-30
@@ -26,6 +26,33 @@ defined('MOODLE_INTERNAL') || die();
|
|||||||
|
|
||||||
require_once($CFG->libdir . '/formslib.php');
|
require_once($CFG->libdir . '/formslib.php');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Description of the form of restoration.
|
||||||
|
*
|
||||||
|
* @copyright 2017 "Valentin Popov" <info@valentineus.link>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
class service_backup_form extends moodleform {
|
||||||
|
/**
|
||||||
|
* Defines the standard structure of the form.
|
||||||
|
*
|
||||||
|
* @throws \coding_exception
|
||||||
|
*/
|
||||||
|
protected function definition() {
|
||||||
|
$mform =& $this->_form;
|
||||||
|
|
||||||
|
/* Form heading */
|
||||||
|
$mform->addElement('header', 'editserviceheader', new lang_string('restore', 'moodle'));
|
||||||
|
|
||||||
|
/* Download the file */
|
||||||
|
$mform->addElement('filepicker', 'backupfile', new lang_string('file', 'moodle'));
|
||||||
|
$mform->addRule('backupfile', null, 'required');
|
||||||
|
|
||||||
|
/* Control Panel */
|
||||||
|
$this->add_action_buttons(true, new lang_string('restore', 'moodle'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description editing form definition.
|
* Description editing form definition.
|
||||||
*
|
*
|
||||||
@@ -40,7 +67,7 @@ class service_edit_form extends moodleform {
|
|||||||
*/
|
*/
|
||||||
protected function definition() {
|
protected function definition() {
|
||||||
$mform =& $this->_form;
|
$mform =& $this->_form;
|
||||||
$size = array('size' => 60);
|
$size = ['size' => 60];
|
||||||
|
|
||||||
/* Form heading */
|
/* Form heading */
|
||||||
$mform->addElement('header', 'editserviceheader', new lang_string('service', 'webservice'));
|
$mform->addElement('header', 'editserviceheader', new lang_string('service', 'webservice'));
|
||||||
@@ -71,7 +98,11 @@ class service_edit_form extends moodleform {
|
|||||||
$mform->setAdvanced('other');
|
$mform->setAdvanced('other');
|
||||||
|
|
||||||
/* Content type */
|
/* Content type */
|
||||||
$contenttype = array('json' => 'application/json', 'x-www-form-urlencoded' => 'application/x-www-form-urlencoded');
|
$contenttype = [
|
||||||
|
'json' => 'application/json',
|
||||||
|
'x-www-form-urlencoded' => 'application/x-www-form-urlencoded',
|
||||||
|
];
|
||||||
|
|
||||||
$mform->addElement('select', 'type', 'Content type', $contenttype);
|
$mform->addElement('select', 'type', 'Content type', $contenttype);
|
||||||
$mform->setAdvanced('type');
|
$mform->setAdvanced('type');
|
||||||
|
|
||||||
@@ -80,7 +111,7 @@ class service_edit_form extends moodleform {
|
|||||||
|
|
||||||
/* List of events */
|
/* List of events */
|
||||||
$eventlist = report_eventlist_list_generator::get_all_events_list();
|
$eventlist = report_eventlist_list_generator::get_all_events_list();
|
||||||
$events = array();
|
$events = [];
|
||||||
|
|
||||||
/* Formation of the list of elements */
|
/* Formation of the list of elements */
|
||||||
foreach ($eventlist as $event) {
|
foreach ($eventlist as $event) {
|
||||||
@@ -97,31 +128,4 @@ class service_edit_form extends moodleform {
|
|||||||
/* Control Panel */
|
/* Control Panel */
|
||||||
$this->add_action_buttons();
|
$this->add_action_buttons();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Description of the form of restoration.
|
|
||||||
*
|
|
||||||
* @copyright 2017 "Valentin Popov" <info@valentineus.link>
|
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
||||||
*/
|
|
||||||
class service_backup_form extends moodleform {
|
|
||||||
/**
|
|
||||||
* Defines the standard structure of the form.
|
|
||||||
*
|
|
||||||
* @throws \coding_exception
|
|
||||||
*/
|
|
||||||
protected function definition() {
|
|
||||||
$mform =& $this->_form;
|
|
||||||
|
|
||||||
/* Form heading */
|
|
||||||
$mform->addElement('header', 'editserviceheader', new lang_string('restore', 'moodle'));
|
|
||||||
|
|
||||||
/* Download the file */
|
|
||||||
$mform->addElement('filepicker', 'backupfile', new lang_string('file', 'moodle'));
|
|
||||||
$mform->addRule('backupfile', null, 'required');
|
|
||||||
|
|
||||||
/* Control Panel */
|
|
||||||
$this->add_action_buttons(true, new lang_string('restore', 'moodle'));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -22,4 +22,5 @@
|
|||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$string['pluginname'] = 'WebHooks';
|
$string['pluginname'] = 'WebHooks';
|
||||||
|
$string['privacy:metadata'] = 'WebHooks does not store any personal data.';
|
||||||
|
|||||||
+4
-4
@@ -24,8 +24,8 @@
|
|||||||
|
|
||||||
defined('MOODLE_INTERNAL') || die();
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
$plugin->release = '3.0.2 (Build: 2018061910)';
|
|
||||||
$plugin->version = 2018061910;
|
|
||||||
$plugin->requires = 2016112900;
|
|
||||||
$plugin->component = 'local_webhooks';
|
$plugin->component = 'local_webhooks';
|
||||||
$plugin->maturity = MATURITY_STABLE;
|
$plugin->maturity = MATURITY_STABLE;
|
||||||
|
$plugin->release = '3.0.5 (Build: 2020051600)';
|
||||||
|
$plugin->requires = 2019052000;
|
||||||
|
$plugin->version = 2020051600;
|
||||||
|
|||||||
Reference in New Issue
Block a user