You are here

function opigno_lrs_stats_query_scope_scored_statements in Opigno TinCan API 7

Scope pipeline to retrieve only scored statements

Parameters

$pipeline: A structured pipeline array.

Return value

array A structured pipeline array.

File

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

Code

function opigno_lrs_stats_query_scope_scored_statements($pipeline) {

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