|
@ -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; |
|
|