Browse Source

Fix #74 - crud and objecttable params in /classes/event/ need fixing

MOODLE_27_STABLE
Barry Oosthuizen 10 years ago
parent
commit
c30db3cb1c
  1. 4
      classes/event/attendance_taken.php
  2. 6
      classes/event/attendance_taken_by_student.php
  3. 4
      classes/event/session_added.php
  4. 4
      classes/event/session_deleted.php
  5. 4
      classes/event/session_duration_updated.php
  6. 4
      classes/event/session_updated.php
  7. 4
      classes/event/status_added.php
  8. 4
      classes/event/status_updated.php

4
classes/event/attendance_taken.php

@ -44,9 +44,9 @@ class attendance_taken extends \core\event\base {
* Init method.
*/
protected function init() {
$this->data['crud'] = 'r';
$this->data['crud'] = 'u';
$this->data['edulevel'] = self::LEVEL_TEACHING;
$this->data['objecttable'] = 'attendance';
$this->data['objecttable'] = 'attendance_log';
}
/**

6
classes/event/attendance_taken_by_student.php

@ -44,9 +44,9 @@ class attendance_taken_by_student extends \core\event\base {
* Init method.
*/
protected function init() {
$this->data['crud'] = 'r';
$this->data['edulevel'] = self::LEVEL_TEACHING;
$this->data['objecttable'] = 'attendance';
$this->data['crud'] = 'u';
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
$this->data['objecttable'] = 'attendance_log';
}
/**

4
classes/event/session_added.php

@ -44,9 +44,9 @@ class session_added extends \core\event\base {
* Init method.
*/
protected function init() {
$this->data['crud'] = 'r';
$this->data['crud'] = 'c';
$this->data['edulevel'] = self::LEVEL_TEACHING;
$this->data['objecttable'] = 'attendance';
$this->data['objecttable'] = 'attendance_sessions';
}
/**

4
classes/event/session_deleted.php

@ -44,9 +44,9 @@ class session_deleted extends \core\event\base {
* Init method.
*/
protected function init() {
$this->data['crud'] = 'r';
$this->data['crud'] = 'd';
$this->data['edulevel'] = self::LEVEL_TEACHING;
$this->data['objecttable'] = 'attendance';
$this->data['objecttable'] = 'attendance_sessions';
}
/**

4
classes/event/session_duration_updated.php

@ -44,9 +44,9 @@ class session_duration_updated extends \core\event\base {
* Init method.
*/
protected function init() {
$this->data['crud'] = 'r';
$this->data['crud'] = 'u';
$this->data['edulevel'] = self::LEVEL_TEACHING;
$this->data['objecttable'] = 'attendance';
$this->data['objecttable'] = 'attendance_sessions';
}
/**

4
classes/event/session_updated.php

@ -44,9 +44,9 @@ class session_updated extends \core\event\base {
* Init method.
*/
protected function init() {
$this->data['crud'] = 'r';
$this->data['crud'] = 'u';
$this->data['edulevel'] = self::LEVEL_TEACHING;
$this->data['objecttable'] = 'attendance';
$this->data['objecttable'] = 'attendance_sessions';
}
/**

4
classes/event/status_added.php

@ -44,9 +44,9 @@ class status_added extends \core\event\base {
* Init method.
*/
protected function init() {
$this->data['crud'] = 'r';
$this->data['crud'] = 'c';
$this->data['edulevel'] = self::LEVEL_TEACHING;
$this->data['objecttable'] = 'attendance';
$this->data['objecttable'] = 'attendance_statuses';
}
/**

4
classes/event/status_updated.php

@ -44,9 +44,9 @@ class status_updated extends \core\event\base {
* Init method.
*/
protected function init() {
$this->data['crud'] = 'r';
$this->data['crud'] = 'u';
$this->data['edulevel'] = self::LEVEL_TEACHING;
$this->data['objecttable'] = 'attendance';
$this->data['objecttable'] = 'attendance_statuses';
}
/**

Loading…
Cancel
Save