You are here

function opigno_lrs_stats_query_scope_finished_statements in Opigno TinCan API 7

Scope pipeline to retrieve only finished statements

Parameters

$pipeline: A structured pipeline array.

Return value

array A structured pipeline array.

1 call to opigno_lrs_stats_query_scope_finished_statements()
opigno_lrs_stats_all_course_content_finished_statements in modules/opigno_tincan_api_stats/includes/model/queries.inc
Retrieve all course content finished statements (caching for current request)

File

modules/opigno_tincan_api_stats/includes/model/scopes.inc, line 51
Implements functions to scope queries

Code

function opigno_lrs_stats_query_scope_finished_statements($pipeline) {

  //  $verb = tincanapi_get_verb('completed'); // TODO remove this
  $verb = OpignoTincanApiTinCanVerbs::$completed;
  return opigno_lrs_stats_query_match($pipeline, array(
    'statement.verb.id' => $verb['id'],
  ));
}