function opigno_lrs_stats_query_unwind in Opigno TinCan API 7
Unwind array by path
Parameters
$pipeline: A structured pipeline array.
$path:
Return value
array
1 call to opigno_lrs_stats_query_unwind()
- opigno_lrs_stats_query_scope_unwind_context in modules/
opigno_tincan_api_stats/ includes/ model/ scopes.inc - Scope pipeline to unwind statement context
File
- modules/
opigno_tincan_api_stats/ includes/ model/ pipeline.inc, line 67 - Implements functions to progressively build a pipeline for mongoDB aggregate function
Code
function opigno_lrs_stats_query_unwind($pipeline, $path) {
$pipeline[]['$unwind'] = $path;
return $pipeline;
}