Browse Source

Fix some issues with order of static/public function definitions.

MOODLE_38_STABLE
Dan Marsden 4 years ago
parent
commit
73dba7225e
  1. 2
      backup/moodle2/backup_attendance_activity_task.class.php
  2. 8
      backup/moodle2/restore_attendance_activity_task.class.php

2
backup/moodle2/backup_attendance_activity_task.class.php

@ -53,7 +53,7 @@ class backup_attendance_activity_task extends backup_activity_task {
* @param string $content * @param string $content
* @return string * @return string
*/ */
static public function encode_content_links($content) { public static function encode_content_links($content) {
global $CFG; global $CFG;
$base = preg_quote($CFG->wwwroot, "/"); $base = preg_quote($CFG->wwwroot, "/");

8
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 * Define the contents in the activity that must be
* processed by the link decoder * processed by the link decoder
*/ */
static public function define_decode_contents() { public static function define_decode_contents() {
$contents = array(); $contents = array();
$contents[] = new restore_decode_content('attendance_sessions', $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 * Define the decoding rules for links belonging
* to the activity to be executed by the link decoder * 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 = array();
$rules[] = new restore_decode_rule('ATTENDANCEVIEWBYID', $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 * attendance logs. It must return one array
* of {@see restore_log_rule} objects * of {@see restore_log_rule} objects
*/ */
static public function define_restore_log_rules() { public static function define_restore_log_rules() {
$rules = array(); $rules = array();
// TODO: log restore. // 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 * by the restore final task, but are defined here at
* activity level. All them are rules not linked to any module instance (cmid = 0) * 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(); $rules = array();
return $rules; return $rules;

Loading…
Cancel
Save