You are here

function opigno_lrs_stats_course_content_total_number_of_activities in Opigno TinCan API 7

Count total number of activities 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_activities()
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 44
Courses model functions

Code

function opigno_lrs_stats_course_content_total_number_of_activities($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($statements);
}