You are here

function opigno_lrs_stats_course_content_total_number_of_page_view in Opigno TinCan API 7

Count total number of page view 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_page_view()
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 16
Courses model functions

Code

function opigno_lrs_stats_course_content_total_number_of_page_view($statement_filter_function = NULL) {
  $statements = isset($statement_filter_function) ? $statement_filter_function(opigno_lrs_stats_all_course_content_viewed_statements()) : opigno_lrs_stats_all_course_content_viewed_statements();
  return count($statements);
}