. /** * The mod_palestra course module viewed event. * * @package mod_palestra * @copyright 2021 Interlegis (https://www.interlegis.leg.br) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace mod_palestra\event; defined('MOODLE_INTERNAL') || die(); class course_module_viewed extends \core\event\course_module_viewed { protected function init() { $this->data['crud'] = 'r'; $this->data['edulevel'] = self::LEVEL_PARTICIPATING; $this->data['objecttable'] = 'palestra'; } public static function get_objectid_mapping() { return array('db' => 'palestra', 'restore' => 'palestra'); } }