diff --git a/lang/en/videotime.php b/lang/en/videotime.php index 12bf6fcf..915f2c51 100644 --- a/lang/en/videotime.php +++ b/lang/en/videotime.php @@ -77,6 +77,7 @@
  • Enter Client ID and Client Secret here
  • '; $string['confirmation'] = 'Confirmation'; $string['controls'] = 'Controls'; +$string['coverage_help'] = 'Amount of video seen at least once by user'; $string['create_vimeo_app'] = 'Create Vimeo App'; $string['currentwatchtime'] = 'Current watch time'; $string['datasource:videotime_sessions_data_source'] = 'Video Time sessions'; @@ -98,6 +99,7 @@ $string['enabletabs_help'] = 'Display tabs with video which may contain additional information or interaction'; $string['estimated_request_time'] = 'Estimated time remaining'; $string['failed'] = "Failed"; +$string['firstaccess_help'] = 'When user first played video'; $string['firstsession'] = 'First session'; $string['force'] = 'Force setting'; $string['force_help'] = 'If checked this default will override the instance setting.'; @@ -111,6 +113,7 @@ $string['insert_video_metadata'] = 'Insert metadata from video (may override activity settings)'; $string['invalid_session_state'] = 'Invalid session state.'; $string['label_mode'] = 'Label mode'; +$string['lastaccess_help'] = 'When user last played video'; $string['lastsession'] = 'Last session'; $string['long'] = 'Long'; $string['managevideotimepluginplugins'] = 'Manage Video Time extensions'; @@ -285,6 +288,7 @@ $string['timeleft'] = "Time Left"; $string['timestarted'] = 'Date started'; $string['todo'] = 'TODO'; +$string['totaltime_help'] = 'Time video was playing at normal speed'; $string['totaluniquevisitors'] = 'Total unique visitors'; $string['totalvideotime'] = 'Total video time: {$a->time}'; $string['totalviews'] = 'Total views'; @@ -316,7 +320,7 @@ $string['viewpercentgrade'] = 'Set grade equal to view percentage.'; $string['viewpercentgrade_help'] = 'Create grade item for this video. Student will receive a grade equal to their view percentage of the video.'; $string['views'] = 'Views'; -$string['views_help'] = 'Number of times the activity has been viewed.'; +$string['views_help'] = 'Number of separate times activity page was loaded to view video'; $string['vimeo_overview'] = 'Overview and setup'; $string['vimeo_url'] = 'Video URL'; $string['vimeo_url_help'] = 'Full URL of Vimeo video, Youtube video, or an external video or audio file.'; @@ -331,4 +335,6 @@ $string['watch_time'] = 'Watch time'; $string['watch_time_help'] = 'How long the student has watched the video in total (in 5s steps).'; $string['watchedtime'] = "Time watched"; +$string['watchpercent_help'] = 'The highest percentage of the video seend'; +$string['watchtime_help'] = 'The farthest position seen by the user'; $string['with_play_button'] = 'with play button'; diff --git a/lib.php b/lib.php index 3065a75c..846de2c9 100644 --- a/lib.php +++ b/lib.php @@ -650,6 +650,13 @@ function videotime_get_coursemodule_info($coursemodule) { } } + if ($instance->timeclose) { + $result->customdata['timeclose'] = $instance->timeclose; + } + if ($instance->timeopen) { + $result->customdata['timeopen'] = $instance->timeopen; + } + return $result; } diff --git a/report.php b/report.php index 47227249..22bda8cc 100644 --- a/report.php +++ b/report.php @@ -23,6 +23,7 @@ */ use mod_videotime\videotime_instance; +use videotimeplugin_pro\output\user_report; use videotimeplugin_pro\session; require(__DIR__ . '/../../config.php'); @@ -82,6 +83,14 @@ $groupselector = ''; } +if ($userid = optional_param('userid', null, PARAM_INT)) { + $userreport = new user_report($cm, $userid); + echo $OUTPUT->header(); + echo $OUTPUT->render($userreport); + echo $OUTPUT->footer(); + die(); +} + $table = new \videotimeplugin_pro\sessions_report_table($cm->id, $download); $table->define_baseurl($PAGE->url); $table->is_downloadable(true);