function opigno_lrs_stats_course_content_total_number_of_active_users in Opigno TinCan API 7
Count total number of active users for all course contents
Parameters
string $statement_filter_function: Function to use as statement filter
Return value
int
1 call to opigno_lrs_stats_course_content_total_number_of_active_users()
- opigno_lrs_stats_course_content_general_statistics in modules/
opigno_tincan_api_stats/ includes/ course_content/ model.inc - Present general statistics
File
- modules/
opigno_tincan_api_stats/ includes/ course_content/ model.inc, line 30 - Courses model functions
Code
function opigno_lrs_stats_course_content_total_number_of_active_users($statement_filter_function = NULL) {
$statements = isset($statement_filter_function) ? $statement_filter_function(opigno_lrs_stats_all_course_content_statements()) : opigno_lrs_stats_all_course_content_statements();
return count(opigno_lrs_stats_aggregate_statements_by_user($statements));
}