course_module_viewed.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. // This file is part of Moodle - http://moodle.org/
  3. //
  4. // Moodle is free software: you can redistribute it and/or modify
  5. // it under the terms of the GNU General Public License as published by
  6. // the Free Software Foundation, either version 3 of the License, or
  7. // (at your option) any later version.
  8. //
  9. // Moodle is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU General Public License
  15. // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
  16. /**
  17. * Defines the view event.
  18. *
  19. * @package mod_colab
  20. * @copyright 2020 Your Name <you@example.com>
  21. * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  22. */
  23. namespace mod_colab\event;
  24. defined('MOODLE_INTERNAL') || die();
  25. /**
  26. * The mod_newmodule instance viewed event class
  27. *
  28. * If the view mode needs to be stored as well, you may need to
  29. * override methods get_url() and get_legacy_log_data(), too.
  30. *
  31. * @package mod_colab
  32. * @copyright 2020 Your Name <you@example.com>
  33. * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  34. */
  35. class course_module_viewed extends \core\event\course_module_viewed {
  36. /**
  37. * Initialize the event
  38. */
  39. protected function init() {
  40. $this->data['objecttable'] = 'colab';
  41. parent::init();
  42. }
  43. }