function opigno_lrs_stats_filter_finished_statement_with_score in Opigno TinCan API 7
Filter finished statement that has a score (completion)
Parameters
array $finished_statements:
Return value
TRUE|FALSE
1 string reference to 'opigno_lrs_stats_filter_finished_statement_with_score'
- opigno_lrs_stats_filter_finished_statements_with_score in modules/
opigno_tincan_api_stats/ includes/ model/ filters.inc - Filter finished statements that have a score (completion)
File
- modules/
opigno_tincan_api_stats/ includes/ model/ filters.inc, line 89 - Implements functions to filter statements
Code
function opigno_lrs_stats_filter_finished_statement_with_score($statement) {
return isset($statement->result) ? $statement->result->completion : false;
}