Browse Source

Fix #231 set objectid mapping to attendance id.

MOODLE_32_STABLE
Dan Marsden 8 years ago
parent
commit
10a69b6fb3
  1. 9
      classes/event/attendance_taken.php
  2. 9
      classes/event/attendance_taken_by_student.php
  3. 10
      classes/event/report_viewed.php
  4. 9
      classes/event/session_added.php
  5. 9
      classes/event/session_deleted.php
  6. 9
      classes/event/session_duration_updated.php
  7. 9
      classes/event/session_updated.php
  8. 10
      classes/event/status_added.php
  9. 10
      classes/event/status_removed.php
  10. 10
      classes/event/status_updated.php

9
classes/event/attendance_taken.php

@ -89,6 +89,15 @@ class attendance_taken extends \core\event\base {
'', $this->contextinstanceid);
}
/**
* Get objectid mapping
*
* @return array of parameters for object mapping.
*/
public static function get_objectid_mapping() {
return array('db' => 'attendance', 'restore' => 'attendance');
}
/**
* Custom validation.
*

9
classes/event/attendance_taken_by_student.php

@ -89,6 +89,15 @@ class attendance_taken_by_student extends \core\event\base {
'', $this->contextinstanceid);
}
/**
* Get objectid mapping
*
* @return array of parameters for object mapping.
*/
public static function get_objectid_mapping() {
return array('db' => 'attendance', 'restore' => 'attendance');
}
/**
* Custom validation.
*

10
classes/event/report_viewed.php

@ -86,4 +86,14 @@ class report_viewed extends \core\event\base {
return array($this->courseid, 'attendance', 'report', 'report.php?id=' . $this->objectid,
$this->objectid, $this->contextinstanceid);
}
/**
* Get objectid mapping
*
* @return array of parameters for object mapping.
*/
public static function get_objectid_mapping() {
return array('db' => 'attendance', 'restore' => 'attendance');
}
}

9
classes/event/session_added.php

@ -87,6 +87,15 @@ class session_added extends \core\event\base {
$this->other['info'], $this->contextinstanceid);
}
/**
* Get objectid mapping
*
* @return array of parameters for object mapping.
*/
public static function get_objectid_mapping() {
return array('db' => 'attendance', 'restore' => 'attendance');
}
/**
* Custom validation.
*

9
classes/event/session_deleted.php

@ -87,6 +87,15 @@ class session_deleted extends \core\event\base {
$this->other['info'], $this->contextinstanceid);
}
/**
* Get objectid mapping
*
* @return array of parameters for object mapping.
*/
public static function get_objectid_mapping() {
return array('db' => 'attendance', 'restore' => 'attendance');
}
/**
* Custom validation.
*

9
classes/event/session_duration_updated.php

@ -87,6 +87,15 @@ class session_duration_updated extends \core\event\base {
$this->other['info'], $this->contextinstanceid);
}
/**
* Get objectid mapping
*
* @return array of parameters for object mapping.
*/
public static function get_objectid_mapping() {
return array('db' => 'attendance', 'restore' => 'attendance');
}
/**
* Custom validation.
*

9
classes/event/session_updated.php

@ -89,6 +89,15 @@ class session_updated extends \core\event\base {
$this->other['info'], $this->contextinstanceid);
}
/**
* Get objectid mapping
*
* @return array of parameters for object mapping.
*/
public static function get_objectid_mapping() {
return array('db' => 'attendance', 'restore' => 'attendance');
}
/**
* Custom validation.
*

10
classes/event/status_added.php

@ -86,4 +86,14 @@ class status_added extends \core\event\base {
return array($this->courseid, 'attendance', 'status added', $this->get_url(),
$this->other['acronym'].': '.$this->other['description'].' ('.$this->other['grade'].')', $this->contextinstanceid);
}
/**
* Get objectid mapping
*
* @return array of parameters for object mapping.
*/
public static function get_objectid_mapping() {
return array('db' => 'attendance', 'restore' => 'attendance');
}
}

10
classes/event/status_removed.php

@ -88,4 +88,14 @@ class status_removed extends \core\event\base {
return array($this->courseid, 'attendance', 'status removed', $this->get_url(),
$this->other['acronym'] . ' - ' . $this->other['description'], $this->contextinstanceid);
}
/**
* Get objectid mapping
*
* @return array of parameters for object mapping.
*/
public static function get_objectid_mapping() {
return array('db' => 'attendance', 'restore' => 'attendance');
}
}

10
classes/event/status_updated.php

@ -86,4 +86,14 @@ class status_updated extends \core\event\base {
return array($this->courseid, 'attendance', 'status updated', $this->get_url(),
$this->other['updated'], $this->contextinstanceid);
}
/**
* Get objectid mapping
*
* @return array of parameters for object mapping.
*/
public static function get_objectid_mapping() {
return array('db' => 'attendance', 'restore' => 'attendance');
}
}

Loading…
Cancel
Save