summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-11-23 16:58:29 +0300
committerValentin Popov <info@valentineus.link>2017-11-23 16:58:29 +0300
commit03d22ef096c57e462e81fac078ffd463302a256e (patch)
tree8820242086447f51334ec46dc5ccb8a56fd01263 /classes
parent1c87dae035480a45bc4710f1118bd09e434b5176 (diff)
downloadlocal_webhooks-03d22ef096c57e462e81fac078ffd463302a256e.tar.xz
local_webhooks-03d22ef096c57e462e81fac078ffd463302a256e.zip
Refactoring the code for creating forms
Diffstat (limited to 'classes')
-rw-r--r--classes/editform.php19
1 files changed, 0 insertions, 19 deletions
diff --git a/classes/editform.php b/classes/editform.php
index 64e1e20..4f1ce31 100644
--- a/classes/editform.php
+++ b/classes/editform.php
@@ -22,16 +22,10 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-namespace local_webhooks;
-
defined("MOODLE_INTERNAL") || die();
require_once($CFG->libdir . "/formslib.php");
-use lang_string;
-use moodleform;
-use report_eventlist_list_generator;
-
/**
* Description editing form definition.
*
@@ -47,19 +41,6 @@ class service_edit_form extends moodleform {
}
/**
- * Preparing data before displaying.
- *
- * @param object $record
- */
- public function set_data($record) {
- if (!empty($record->events)) {
- $record->events = unserialize(gzuncompress(base64_decode($record->events)));
- }
-
- return parent::set_data($record);
- }
-
- /**
* Defines the standard structure of the form.
*/
protected function definition() {