You are here

function opigno_lrs_stats_filter_current_month_statements in Opigno TinCan API 7

Filter statements that happened this month

Parameters

array $statements:

Return value

array

1 call to opigno_lrs_stats_filter_current_month_statements()
opigno_lrs_stats_current_month_viewed_statements in modules/opigno_tincan_api_stats/includes/model/queries.inc
Retrieve all viewed statements that happened this month
1 string reference to 'opigno_lrs_stats_filter_current_month_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 48
Implements functions to filter statements

Code

function opigno_lrs_stats_filter_current_month_statements($statements) {
  return opigno_lrs_stats_statements_date_between($statements, opigno_lrs_stats_start_of_current_month(), opigno_lrs_stats_end_of_current_month());
}