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