You are here

function opigno_lrs_stats_filter_finished_statements_with_score in Opigno TinCan API 7

Filter finished statements that have a score (completion)

Parameters

array $finished_statements:

Return value

array

2 calls to opigno_lrs_stats_filter_finished_statements_with_score()
opigno_lrs_stats_course_content_avg_score in modules/opigno_tincan_api_stats/includes/course_content/model.inc
Calculate average score for all course contents
opigno_lrs_stats_quizzes_quizzes_statistics in modules/opigno_tincan_api_stats/includes/quizzes/model.inc
Present quizzes statistics

File

modules/opigno_tincan_api_stats/includes/model/filters.inc, line 78
Implements functions to filter statements

Code

function opigno_lrs_stats_filter_finished_statements_with_score($finished_statements) {
  return array_filter($finished_statements, 'opigno_lrs_stats_filter_finished_statement_with_score');
}