function opigno_lrs_stats_filter_current_year_statements in Opigno TinCan API 7
Filter statements that happened this year
Parameters
array $statements:
Return value
array
1 call to opigno_lrs_stats_filter_current_year_statements()
- opigno_lrs_stats_current_year_viewed_statements in modules/
opigno_tincan_api_stats/ includes/ model/ queries.inc - Retrieve all viewed statements that happened this year
1 string reference to 'opigno_lrs_stats_filter_current_year_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 63 - Implements functions to filter statements
Code
function opigno_lrs_stats_filter_current_year_statements($statements) {
return opigno_lrs_stats_statements_date_between($statements, opigno_lrs_stats_start_of_current_year(), opigno_lrs_stats_end_of_current_year());
}