123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- /**
- * The mod_nasatlx submission created event.
- *
- * @author Leônidas O. Brandão
- * @version v 0.1 2019/03/04
- * @package mod_nasatlx
- * @category event
- * @since 2019/03/04
- * @copyright LInE (line.ime.usp.br) - Computer Science Dep. of IME-USP (Brazil)
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- */
- namespace mod_nasatlx\event;
- defined('MOODLE_INTERNAL') || die();
- class course_module_instance_list_viewed extends \core\event\course_module_instance_list_viewed {
- /**
- * Create the event from course record.
- *
- * @param \stdClass $course
- * @return course_module_instance_list_viewed
- */
- public static function create_from_course (\stdClass $course) {
- $params = array(
- 'context' => \context_course::instance($course->id)
- );
- $event = \mod_nasatlx\event\course_module_instance_list_viewed::create($params);
- $event->add_record_snapshot('course', $course);
- return $event;
- }
- }
|