123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <?php
- namespace mod_iassign\event;
- defined('MOODLE_INTERNAL') || die();
- class iassign_updated extends \core\event\base {
-
- protected function init () {
- $this->data['crud'] = 'u';
- $this->data['edulevel'] = self::LEVEL_TEACHING;
- $this->data['objecttable'] = 'iassign';
- }
-
- public static function get_name () {
- return get_string('eventiassignupdated', 'mod_iassign');
- }
-
- public function get_description () {
- return "The user with id '$this->userid' has updated the iAssign with id '$this->objectid' in " .
- "the iAssign activity with course module id '$this->contextinstanceid'.";
- }
-
- public function get_url () {
- return new \moodle_url('/mod/iassign/view.php', array('id' => $this->contextinstanceid));
- }
-
- public function get_legacy_logdata () {
- return array($this->courseid, 'iassign', 'update',
- "view.php?id={$this->contextinstanceid}",
- $this->objectid, $this->contextinstanceid);
- }
-
- protected function validate_data () {
- parent::validate_data();
-
- if(!$this->contextlevel === CONTEXT_MODULE) {
- throw new \coding_exception('Context level must be CONTEXT_MODULE.');
- }
- }
- }
|