function opigno_statistics_app_present_general_statistics in Opigno Statistics App 7
Present general statistics
Output example: array( 'course_progress_percentage' => 22 'quizz_completion_percentage' => 15 );
Parameters
int $month_year:
boolean $filter_month:
int $category_id:
Return value
array
1 call to opigno_statistics_app_present_general_statistics()
- opigno_statistics_app_dashboard_page in includes/
dashboard/ dashboard.pages.inc
File
- includes/
dashboard/ presenters.inc, line 68
Code
function opigno_statistics_app_present_general_statistics($month_year, $filter_month, $category_id) {
return array(
'course_progress_percentage' => round(opigno_statistics_app_query_general_course_progress_percentage($month_year, $filter_month, $category_id) * 100),
'quizz_completion_percentage' => round(opigno_statistics_app_query_quiz_completion_percentage($month_year, $filter_month, $category_id) * 100),
);
}