. namespace mod_subsection\event; /** * The mod_subsection viewed event class. * * @package mod_subsection * @since Moodle 4.5 * @copyright 2023 Amaia Anabitarte * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class course_module_viewed extends \core\event\course_module_viewed { /** * Init method. */ protected function init() { $this->data['crud'] = 'r'; $this->data['edulevel'] = self::LEVEL_PARTICIPATING; $this->data['objecttable'] = 'subsection'; } public static function get_objectid_mapping() { return ['db' => 'subsection', 'restore' => 'subsection']; } }