From 8df94fd093e83bde7efd9ed953c612b876ef3bd3 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Tue, 23 Jul 2013 14:44:11 +0800 Subject: [PATCH] Added missing scope to functions --- edit_element_form.php | 4 ++-- edit_form.php | 4 ++-- load_template_form.php | 2 +- mod_form.php | 2 +- save_template_form.php | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/edit_element_form.php b/edit_element_form.php index f2f427f..84d7f2a 100644 --- a/edit_element_form.php +++ b/edit_element_form.php @@ -39,7 +39,7 @@ class mod_customcert_edit_element_form extends moodleform { /** * Form definition. */ - function definition() { + public function definition() { $mform =& $this->_form; $element = $this->_customdata['element']; @@ -60,7 +60,7 @@ class mod_customcert_edit_element_form extends moodleform { /** * Fill in the current page data for this customcert. */ - function definition_after_data() { + public function definition_after_data() { $this->element->definition_after_data($this->_form); } diff --git a/edit_form.php b/edit_form.php index 9962ec0..759df38 100644 --- a/edit_form.php +++ b/edit_form.php @@ -49,7 +49,7 @@ class mod_customcert_edit_form extends moodleform { /** * Form definition. */ - function definition() { + public function definition() { global $DB; $this->id = $this->_customdata['customcertid']; @@ -94,7 +94,7 @@ class mod_customcert_edit_form extends moodleform { /** * Fill in the current page data for this customcert. */ - function definition_after_data() { + public function definition_after_data() { global $DB; $mform = $this->_form; diff --git a/load_template_form.php b/load_template_form.php index 99948f3..bb109fc 100644 --- a/load_template_form.php +++ b/load_template_form.php @@ -30,7 +30,7 @@ class mod_customcert_load_template_form extends moodleform { /** * Form definition. */ - function definition() { + public function definition() { $mform =& $this->_form; $mform->addElement('header', 'loadtemplateheader', get_string('loadtemplate', 'customcert')); diff --git a/mod_form.php b/mod_form.php index eb5c383..a12c689 100644 --- a/mod_form.php +++ b/mod_form.php @@ -31,7 +31,7 @@ class mod_customcert_mod_form extends moodleform_mod { /** * Form definition. */ - function definition() { + public function definition() { global $CFG; $mform =& $this->_form; diff --git a/save_template_form.php b/save_template_form.php index e7d00f2..ca75190 100644 --- a/save_template_form.php +++ b/save_template_form.php @@ -30,7 +30,7 @@ class mod_customcert_save_template_form extends moodleform { /** * Form definition. */ - function definition() { + public function definition() { $mform =& $this->_form; $mform->addElement('header', 'savetemplateheader', get_string('savetemplate', 'customcert'));