From adebc4e51dfd374b133acdbea1569baa092abcc9 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Wed, 23 Mar 2011 16:22:25 +0000 Subject: [PATCH] MDL-47494 ddimageortext: Add lots of missing public/protected/private. --- .../backup/moodle2/restore_qtype_ddwtos_plugin.class.php | 2 +- question/type/ddimageortext/edit_ddwtos_form.php | 2 +- question/type/ddimageortext/questiontype.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/question/type/ddimageortext/backup/moodle2/restore_qtype_ddwtos_plugin.class.php b/question/type/ddimageortext/backup/moodle2/restore_qtype_ddwtos_plugin.class.php index 786ec45e5cd..1676ddbb227 100755 --- a/question/type/ddimageortext/backup/moodle2/restore_qtype_ddwtos_plugin.class.php +++ b/question/type/ddimageortext/backup/moodle2/restore_qtype_ddwtos_plugin.class.php @@ -124,7 +124,7 @@ class restore_qtype_ddwtos_plugin extends restore_qtype_plugin { /** * Return the contents of this qtype to be processed by the links decoder */ - static public function define_decode_contents() { + public static function define_decode_contents() { $contents = array(); diff --git a/question/type/ddimageortext/edit_ddwtos_form.php b/question/type/ddimageortext/edit_ddwtos_form.php index f840a6ef919..fd2273b71b1 100755 --- a/question/type/ddimageortext/edit_ddwtos_form.php +++ b/question/type/ddimageortext/edit_ddwtos_form.php @@ -37,7 +37,7 @@ require_once($CFG->dirroot . '/question/type/gapselect/edit_form_base.php'); * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class qtype_ddwtos_edit_form extends qtype_gapselect_edit_form_base { - function qtype() { + public function qtype() { return 'ddwtos'; } diff --git a/question/type/ddimageortext/questiontype.php b/question/type/ddimageortext/questiontype.php index 3bda33afea6..c990afab802 100755 --- a/question/type/ddimageortext/questiontype.php +++ b/question/type/ddimageortext/questiontype.php @@ -110,7 +110,7 @@ class qtype_ddwtos extends qtype_gapselect_base { return $question; } - function export_to_xml($question, $format, $extra = null) { + public function export_to_xml($question, $format, $extra = null) { $output = ''; $output .= ' ' . $question->options->shuffleanswers . "\n";