. /** * Defines the view event. * * @package mod_colab * @copyright 2020 Your Name * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace mod_colab\event; defined('MOODLE_INTERNAL') || die(); /** * The mod_newmodule instance viewed event class * * If the view mode needs to be stored as well, you may need to * override methods get_url() and get_legacy_log_data(), too. * * @package mod_colab * @copyright 2020 Your Name * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class course_module_viewed extends \core\event\course_module_viewed { /** * Initialize the event */ protected function init() { $this->data['objecttable'] = 'colab'; parent::init(); } }