function opigno_lrs_stats_filter_current_week_statements in Opigno TinCan API 7
Filter statements that happened this week
Parameters
array $statements:
Return value
array
1 call to opigno_lrs_stats_filter_current_week_statements()
- opigno_lrs_stats_current_week_viewed_statements in modules/
opigno_tincan_api_stats/ includes/ model/ queries.inc - Retrieve all viewed statements that happened this week
1 string reference to 'opigno_lrs_stats_filter_current_week_statements'
- opigno_lrs_stats_course_content_page in modules/
opigno_tincan_api_stats/ includes/ course_content/ course_content.pages.inc - Display courses statistic page
File
- modules/
opigno_tincan_api_stats/ includes/ model/ filters.inc, line 33 - Implements functions to filter statements
Code
function opigno_lrs_stats_filter_current_week_statements($statements) {
return opigno_lrs_stats_statements_date_between($statements, opigno_lrs_stats_start_of_current_week(), opigno_lrs_stats_end_of_current_week());
}