function opigno_lrs_stats_course_content_general_statistics in Opigno TinCan API 7
Present general statistics
Output example: array( 'total_number_of_page_view' => 150, 'total_number_of_active_users => 34, 'total_number_of_activities' => 90 )
Parameters
$statement_filter_function: Function to use as statement filter
Return value
array
1 call to opigno_lrs_stats_course_content_general_statistics()
- opigno_lrs_stats_course_content_page in modules/
opigno_tincan_api_stats/ includes/ course_content/ course_content.pages.inc - Display courses statistic page
File
- modules/
opigno_tincan_api_stats/ includes/ course_content/ model.inc, line 85 - Courses model functions
Code
function opigno_lrs_stats_course_content_general_statistics($statement_filter_function) {
return array(
'total_number_of_page_view' => opigno_lrs_stats_course_content_total_number_of_page_view($statement_filter_function),
'total_number_of_active_users' => opigno_lrs_stats_course_content_total_number_of_active_users($statement_filter_function),
'total_number_of_activities' => opigno_lrs_stats_course_content_total_number_of_activities($statement_filter_function),
'avg_score' => opigno_lrs_stats_course_content_avg_score($statement_filter_function),
);
}