function opigno_lrs_stats_all_course_content_viewed_statements in Opigno TinCan API 7
Retrieve all course content viewed statements (caching for current request)
Return value
array
1 call to opigno_lrs_stats_all_course_content_viewed_statements()
- opigno_lrs_stats_course_content_total_number_of_page_view in modules/
opigno_tincan_api_stats/ includes/ course_content/ model.inc - Count total number of page view for all course contents
File
- modules/
opigno_tincan_api_stats/ includes/ model/ queries.inc, line 95 - Implements functions to query statements
Code
function opigno_lrs_stats_all_course_content_viewed_statements() {
$course_content_viewed_statements =& drupal_static(__FUNCTION__);
if (!isset($course_content_viewed_statements)) {
$course_content_viewed_statements = opigno_lrs_stats_query(opigno_lrs_stats_query_scope_viewed_statements(opigno_lrs_stats_query_scope_course_context(opigno_lrs_stats_query_scope_unwind_context(opigno_lrs_stats_query_new_pipeline()))));
}
return $course_content_viewed_statements;
}