You are here

function opigno_statistics_app_present_class_general_statistics in Opigno Statistics App 7

Present class general statistics

Output example: array( 'class_progress_percentage' => 22 'quizz_completion_percentage' => 15 );

Parameters

int $class_nid:

int $month_year:

boolean $filter_month:

Return value

array

1 call to opigno_statistics_app_present_class_general_statistics()
opigno_statistics_app_class_statistics_page in includes/group/class/class.pages.inc

File

includes/group/class/presenters.inc, line 70

Code

function opigno_statistics_app_present_class_general_statistics($class_nid, $month_year, $filter_month) {
  return array(
    'course_progress_percentage' => round(opigno_statistics_app_query_class_course_progress_percentage($class_nid, $month_year, $filter_month) * 100),
    'quizz_completion_percentage' => round(opigno_statistics_app_query_class_quiz_completion_percentage($class_nid, $month_year, $filter_month) * 100),
  );
}