diff --git a/backup/moodle2/backup_attendance_activity_task.class.php b/backup/moodle2/backup_attendance_activity_task.class.php index 762fe71..0e474f4 100644 --- a/backup/moodle2/backup_attendance_activity_task.class.php +++ b/backup/moodle2/backup_attendance_activity_task.class.php @@ -53,7 +53,7 @@ class backup_attendance_activity_task extends backup_activity_task { * @param string $content * @return string */ - static public function encode_content_links($content) { + public static function encode_content_links($content) { global $CFG; $base = preg_quote($CFG->wwwroot, "/"); diff --git a/backup/moodle2/restore_attendance_activity_task.class.php b/backup/moodle2/restore_attendance_activity_task.class.php index 5276988..d30493d 100644 --- a/backup/moodle2/restore_attendance_activity_task.class.php +++ b/backup/moodle2/restore_attendance_activity_task.class.php @@ -51,7 +51,7 @@ class restore_attendance_activity_task extends restore_activity_task { * Define the contents in the activity that must be * processed by the link decoder */ - static public function define_decode_contents() { + public static function define_decode_contents() { $contents = array(); $contents[] = new restore_decode_content('attendance_sessions', @@ -64,7 +64,7 @@ class restore_attendance_activity_task extends restore_activity_task { * Define the decoding rules for links belonging * to the activity to be executed by the link decoder */ - static public function define_decode_rules() { + public static function define_decode_rules() { $rules = array(); $rules[] = new restore_decode_rule('ATTENDANCEVIEWBYID', @@ -88,7 +88,7 @@ class restore_attendance_activity_task extends restore_activity_task { * attendance logs. It must return one array * of {@see restore_log_rule} objects */ - static public function define_restore_log_rules() { + public static function define_restore_log_rules() { $rules = array(); // TODO: log restore. @@ -105,7 +105,7 @@ class restore_attendance_activity_task extends restore_activity_task { * by the restore final task, but are defined here at * activity level. All them are rules not linked to any module instance (cmid = 0) */ - static public function define_restore_log_rules_for_course() { + public static function define_restore_log_rules_for_course() { $rules = array(); return $rules;