Skip to content
Snippets Groups Projects

Event firering tests

Merged Thomas Dondorf requested to merge event_firering_tests into master
6 files
+ 108
3
Compare changes
  • Side-by-side
  • Inline

Files

+ 39
0
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* The report_viewed event.
*
* @package learning_analytics
* @copyright 2014 YOUR NAME
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace local_learning_analytics\event;
defined('MOODLE_INTERNAL') || die();
class report_viewed extends \core\event\base {
protected function init() {
$this->data['crud'] = 'r';
$this->data['edulevel'] = self::LEVEL_OTHER;
$this->data['objecttable'] = 'local_learning_analytics_rep';
}
protected function validate_data() {
if (!isset($this->data['objecttable'])) {
throw new \coding_exception('The objecttable must be set in $data.');
}
}
}
\ No newline at end of file
Loading