function opigno_lrs_stats_query_scope_answered_statements in Opigno TinCan API 7
Scope pipeline to retrieve only answered 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 100 - Implements functions to scope queries
Code
function opigno_lrs_stats_query_scope_answered_statements($pipeline) {
// $verb = tincanapi_get_verb('answered'); // TODO remove this
$verb = OpignoTincanApiTinCanVerbs::$answered;
return opigno_lrs_stats_query_match($pipeline, array(
'statement.verb.id' => $verb['id'],
));
}