protected function add_context_metadata(\core_analytics\local\time_splitting\base $timesplitting, array &$dataset,
            \core_analytics\local\target\base $target) {
        $headers = $this->get_headers($timesplitting, $target);

        // This will also reset samples' dataset keys.
        array_unshift($dataset, $headers);
    }
protected function add_context_metadata(\core_analytics\local\time_splitting\base $timesplitting, array &$dataset,
            \core_analytics\local\target\base $target) {
        $headers = $this->get_headers($timesplitting, $target);

        // This will also reset samples' dataset keys.
        array_unshift($dataset, $headers);
    }
protected function add_context_metadata ( \ core_analytics \ local \ time_splitting \ base $ timesplitting , array & $ dataset , \ core_analytics \ local \ target \ base $ target ) { $ headers = $ this -> get_headers ( $ timesplitting , $ target ) ; // This will also reset samples' dataset keys. array_unshift ( $ dataset , $ headers ) ; }
Adds dataset context info.

The final dataset document will look like this:
----------------------------------------------------
metadata1,metadata2,metadata3,.....
value1, value2, value3,.....

header1,header2,header3,header4,.....
stud1value1,stud1value2,stud1value3,stud1value4,.....
stud2value1,stud2value2,stud2value3,stud2value4,.....
.....
----------------------------------------------------

@param \core_analytics\local\time_splitting\base $timesplitting
@param array $dataset
@param \core_analytics\local\target\base $target
@return null
Adds dataset context info .